8276561: URL$DefaultFactory::PREFIX should be static final
Reviewed-by: djelinski, jpai
This commit is contained in:
parent
52cc6cd063
commit
799a2c844d
@ -1243,7 +1243,7 @@ public final class URL implements java.io.Serializable {
|
||||
private static final URLStreamHandlerFactory defaultFactory = new DefaultFactory();
|
||||
|
||||
private static class DefaultFactory implements URLStreamHandlerFactory {
|
||||
private static String PREFIX = "sun.net.www.protocol.";
|
||||
private static final String PREFIX = "sun.net.www.protocol.";
|
||||
|
||||
public URLStreamHandler createURLStreamHandler(String protocol) {
|
||||
// Avoid using reflection during bootstrap
|
||||
|
Loading…
x
Reference in New Issue
Block a user