Skip to content

Commit

Permalink
8276561: URL$DefaultFactory::PREFIX should be static final
Browse files Browse the repository at this point in the history
Reviewed-by: djelinski, jpai
  • Loading branch information
Michael-Mc-Mahon committed Jul 21, 2022
1 parent 52cc6cd commit 799a2c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/java.base/share/classes/java/net/URL.java
Expand Up @@ -1243,7 +1243,7 @@ public static void setURLStreamHandlerFactory(URLStreamHandlerFactory fac) {
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
Expand Down

1 comment on commit 799a2c8

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.