Skip to content


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/
Original file line number Diff line number Diff line change
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 = "";
private static final String PREFIX = "";

public URLStreamHandler createURLStreamHandler(String protocol) {
// Avoid using reflection during bootstrap
Expand Down

1 comment on commit 799a2c8

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.