mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
exile XmlEncodingReference from Comparable caste
because it doesn't have consistent "equals" and isn't used in sorted collections anyway
This commit is contained in:
+1
-2
@@ -23,7 +23,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class XmlEncodingReference extends EncodingReference implements EmptyResolveMessageProvider, Comparable<XmlEncodingReference> {
|
||||
public class XmlEncodingReference extends EncodingReference implements EmptyResolveMessageProvider {
|
||||
private final int myPriority;
|
||||
|
||||
public XmlEncodingReference(XmlAttributeValue value, final String charsetName, final TextRange rangeInElement, int priority) {
|
||||
@@ -31,7 +31,6 @@ public class XmlEncodingReference extends EncodingReference implements EmptyReso
|
||||
myPriority = priority;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(@NotNull XmlEncodingReference ref) {
|
||||
return myPriority - ref.myPriority;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user