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

URL$DefaultFactory::PREFIX should be static final

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: