Skip to content

Commit

Permalink
Fix VisitOrder#compareBySrcNameShortFirst signature
Browse files Browse the repository at this point in the history
  • Loading branch information
NebelNidas committed Apr 21, 2024
1 parent f1d98ee commit 3021fde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/fabricmc/mappingio/tree/VisitOrder.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public static <T extends MemberMappingView> Comparator<T> compareBySrcNameDesc()
};
}

public static Comparator<ElementMappingView> compareBySrcNameShortFirst() {
public static <T extends ElementMappingView> Comparator<T> compareBySrcNameShortFirst() {
return (a, b) -> compareShortFirst(a.getSrcName(), b.getSrcName());
}

Expand Down Expand Up @@ -190,7 +190,7 @@ public static int compareShortFirst(String a, int startA, int endA, String b, in
return 0;
}

public static int byNameShortFirstNestaware(@Nullable String a, @Nullable String b) {
public static int compareShortFirstNestaware(@Nullable String a, @Nullable String b) {
if (a == null || b == null) {
return compareNullLast(a, b);
}
Expand Down

0 comments on commit 3021fde

Please sign in to comment.