8259291: Cleanup unnecessary local variables

Reviewed-by: mullan
This commit is contained in:
Xue-Lei Andrew Fan 2021-01-06 16:57:17 +00:00
parent d20d2fa957
commit df721f0c69
6 changed files with 12 additions and 20 deletions

View file

@ -265,8 +265,7 @@ final class Finished {
"Invalid PRF output, format must be RAW. " +
"Format received: " + prfKey.getFormat());
}
byte[] finished = prfKey.getEncoded();
return finished;
return prfKey.getEncoded();
} catch (GeneralSecurityException e) {
throw new RuntimeException("PRF failed", e);
}
@ -317,8 +316,7 @@ final class Finished {
"Invalid PRF output, format must be RAW. " +
"Format received: " + prfKey.getFormat());
}
byte[] finished = prfKey.getEncoded();
return finished;
return prfKey.getEncoded();
} catch (GeneralSecurityException e) {
throw new RuntimeException("PRF failed", e);
}