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

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

    XMLWordPrintable

    Details

      Backports

        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:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: