Skip to content

Commit

Permalink
Further improvement to avoid
Browse files Browse the repository at this point in the history
Move Class	org.apache.lucene.codecs.lucene84.Lucene84PostingsFormat.IntBlockTermState moved to org.apache.lucene.codecs.lucene90.Lucene90PostingsFormat.IntBlockTermState
in commit
apache/lucene-solr@f43fe76
  • Loading branch information
tsantalis committed Jan 3, 2025
1 parent 537b999 commit 6f954da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/gr/uom/java/xmi/diff/ClassMoveComparator.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ public int compare(UMLClassMoveDiff o1, UMLClassMoveDiff o2) {
int lineNumberDifference2 = Math.abs(o2.getOriginalClass().getLocationInfo().getCompilationUnitLength() - o2.getNextClass().getLocationInfo().getCompilationUnitLength());
boolean isEmpty1 = o1.getOriginalClass().isEmpty() && o1.getNextClass().isEmpty();
boolean isEmpty2 = o2.getOriginalClass().isEmpty() && o2.getNextClass().isEmpty();
boolean topLevelClass1 = o1.getOriginalClass().isTopLevel() && o1.getNextClass().isTopLevel();
boolean topLevelClass2 = o2.getOriginalClass().isTopLevel() && o2.getNextClass().isTopLevel();
if(set1.size() != set2.size() && !isEmpty1 && !isEmpty2) {
if(sameNumberOfLines1 == sameNumberOfLines2 && !topLevelClass1 && !topLevelClass2) {
return -Integer.compare(set1.size(), set2.size());
}
if(lineNumberDifference1 == lineNumberDifference2)
return -Integer.compare(set1.size(), set2.size());
else {
Expand Down

0 comments on commit 6f954da

Please sign in to comment.