RFR: 8275918: Remove unused local variables in java.base security code
Weijun Wang
weijun at openjdk.java.net
Tue Oct 26 15:22:15 UTC 2021
On Sat, 23 Oct 2021 14:04:07 GMT, Andrey Turbanov <duke at openjdk.java.net> wrote:
> Cleanup unused local variables. Looks like they are leftovers after refactoring.
src/java.base/share/classes/sun/security/rsa/RSAPSSSignature.java line 211:
> 209: AlgorithmParameterSpec keyParams = rsaKey.getParams();
> 210: // validate key parameters
> 211: if (!isCompatible(keyParams, this.sigParams)) {
Why not remove the assignment on line 209? This is more consistent with your fix this time.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6092
More information about the security-dev
mailing list