Skip to content

Commit 09b8a19

Browse files
DarraghClarkejaikiran
authored andcommitted
8300177: URISyntaxException fields can be final
Reviewed-by: dfuchs, alanb, jpai
1 parent c61a382 commit 09b8a19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/java.base/share/classes/java/net/URISyntaxException.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -44,13 +44,13 @@ public class URISyntaxException
4444
/**
4545
* The input string.
4646
*/
47-
private String input;
47+
private final String input;
4848

4949
/**
5050
* The index at which the parse error occurred,
5151
* or {@code -1} if the index is not known.
5252
*/
53-
private int index;
53+
private final int index;
5454

5555
/**
5656
* Constructs an instance from the given input string, reason, and error

0 commit comments

Comments
 (0)