Issue #1189 Sort imports to have same order always

This commit is contained in:
Jindra Petřík
2016-08-16 20:45:43 +02:00
parent 5024093c54
commit ebedbd9523
2 changed files with 8 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ import java.util.List;
*
* @author JPEXS
*/
public class DottedChain implements Serializable {
public class DottedChain implements Serializable, Comparable<DottedChain> {
public static final DottedChain EMPTY = new DottedChain(true);
@@ -278,4 +278,9 @@ public class DottedChain implements Serializable {
return true;
}
@Override
public int compareTo(DottedChain o) {
return toRawString().compareTo(o.toRawString());
}
}