Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8269216

Useless initialization in com/sun/crypto/provider/PBES2Parameters.java

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8, 11, 17, 18
    • Fix Version/s: 18
    • Component/s: security-libs
    • Labels:

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shade Aleksey Shipilev
              Reporter:
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: