[JXR-158] StringEntry shouldn't be Comparable
diff --git a/maven-jxr/src/main/java/org/apache/maven/jxr/util/StringEntry.java b/maven-jxr/src/main/java/org/apache/maven/jxr/util/StringEntry.java
index 85b9977..41de66d 100644
--- a/maven-jxr/src/main/java/org/apache/maven/jxr/util/StringEntry.java
+++ b/maven-jxr/src/main/java/org/apache/maven/jxr/util/StringEntry.java
@@ -23,13 +23,11 @@
* A StringEntry represents a value found by the tokenizer. The index is where
* this StringEntry was found in the source string
*/
-public class StringEntry
- implements Comparable<StringEntry>
+public final class StringEntry
{
+ private final String value;
- private String value = null;
-
- private int index = 0;
+ private final int index;
/**
* Constructor for the StringEntry object
@@ -60,18 +58,5 @@
{
return this.value;
}
-
- /**
- * Compare two objects for equality.
- */
- @Override
- public int compareTo( StringEntry se )
- {
- //right now only sort by the index.
-
- return Integer.compare( se.getIndex(), this.getIndex() );
-
- }
-
}