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

URL$DefaultFactory::PREFIX should be static final

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 20
    • None
    • core-libs
    • b08

    Description

      https://github.com/openjdk/jdk/blob/724bf3be1458f7da502f8772be6151bed826b4f7/src/java.base/share/classes/java/net/URL.java#L1245

              private static String PREFIX = "sun.net.www.protocol.";

      This field is never modified. It should be static final.

      Attachments

        Issue Links

          Activity

            People

              michaelm Michael McMahon
              iklam Ioi Lam
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: