Remove setting the interrupted flag when unneeded.

When rethrowing InterruptedException, this
Thread.currentThread().interrupted() is not needed.

PiperOrigin-RevId: 550586853
This commit is contained in:
huangdarwin 2023-07-24 17:33:54 +01:00 committed by Rohit Singh
parent ef39d317d5
commit e5e3db954f

View File

@ -407,7 +407,6 @@ public class TransformerAndroidTestRunner {
/* distortedVideoPath= */ outputVideoFile.getPath());
testResultBuilder.setSsim(ssim);
} catch (InterruptedException interruptedException) {
Thread.currentThread().interrupt();
// InterruptedException is a special unexpected case because it is not related to Ssim
// calculation, so it should be thrown, rather than processed as part of the
// ExportTestResult.