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

URL$DefaultFactory::PREFIX should be static final

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      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

          Activity

            People

            Assignee:
            iklam Ioi Lam
            Reporter:
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: