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

Useless cast in ECUtil.java

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b06
    • Verification:
      Not verified

      Description

      The cast to X509Key is not necessary.

      - import sun.security.x509.X509Key;

      - X509Key key = (X509Key)keyFactory.generatePublic(keySpec);
      + Key key = keyFactory.generatePublic(keySpec);

               return key.getEncoded();

        Attachments

          Activity

            People

            • Assignee:
              xuelei Xue-Lei Fan
              Reporter:
              xuelei Xue-Lei Fan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: