File tree Expand file tree Collapse file tree 1 file changed +3
-18
lines changed
maven-jxr/src/main/java/org/apache/maven/jxr/util Expand file tree Collapse file tree 1 file changed +3
-18
lines changed Original file line number Diff line number Diff line change 23
23
* A StringEntry represents a value found by the tokenizer. The index is where
24
24
* this StringEntry was found in the source string
25
25
*/
26
- public class StringEntry
27
- implements Comparable <StringEntry >
26
+ public final class StringEntry
28
27
{
28
+ private final String value ;
29
29
30
- private String value = null ;
31
-
32
- private int index = 0 ;
30
+ private final int index ;
33
31
34
32
/**
35
33
* Constructor for the StringEntry object
@@ -60,18 +58,5 @@ public String toString()
60
58
{
61
59
return this .value ;
62
60
}
63
-
64
- /**
65
- * Compare two objects for equality.
66
- */
67
- @ Override
68
- public int compareTo ( StringEntry se )
69
- {
70
- //right now only sort by the index.
71
-
72
- return Integer .compare ( se .getIndex (), this .getIndex () );
73
-
74
- }
75
-
76
61
}
77
62
You can’t perform that action at this time.
0 commit comments