Skip to content

Commit 63f2a79

Browse files
Interval: make public fields final
The class docs already state that Interval is immutable, but this is not enforced. Followup to #4901 Signed-off-by: Steven Schlansker <[email protected]>
1 parent fbb20fe commit 63f2a79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/Java/src/org/antlr/v4/runtime/misc/Interval.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
public class Interval {
1010
public static final Interval INVALID = new Interval(-1,-2);
1111

12-
public int a;
13-
public int b;
12+
public final int a;
13+
public final int b;
1414

1515
public Interval(int a, int b) { this.a=a; this.b=b; }
1616

0 commit comments

Comments
 (0)