JDK-8269216 : Useless initialization in com/sun/crypto/provider/PBES2Parameters.java
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.crypto
  • Affected Version: 8,11,17,18
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-06-23
  • Updated: 2021-11-09
  • Resolved: 2021-06-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17 JDK 18
17.0.2Fixed 18 b04Fixed
Related Reports
Relates :  
Description
SonarCloud reports:
"Remove or correct this useless self-assignment."

        if (cipherAlgo.equals("AES")) {
            this.keysize = keysize; // <---- here
            switch (keysize) {
            case 128:
                cipherAlgo_OID = aes128CBC_OID;

Seems to be here since initial addition in JDK-6383200.
Comments
Fix request (17u) This is a clean backport of a minor cleanup.
03-11-2021

Changeset: e515873f Author: Aleksey Shipilev <shade@openjdk.org> Date: 2021-06-24 06:36:30 +0000 URL: https://git.openjdk.java.net/jdk/commit/e515873f887ce4071ab4878a4bafca8eea67afea
24-06-2021