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

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

XMLWordPrintable

        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.

              shade Aleksey Shipilev
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: