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

Useless cast in ECUtil.java

    XMLWordPrintable

Details

    • b06
    • 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

            xuelei Xuelei Fan
            xuelei Xuelei Fan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: