Fix typo in WildRange constructor error message

The AssertionError message incorrectly stated "max > max"
instead of "min > max" when validating that min <= max.
This commit is contained in:
wujiecong
2026-07-26 19:38:24 +08:00
parent 817766af27
commit daa5238b68

View File

@@ -98,7 +98,7 @@ public class WildAssemblyParseToken extends AssemblyParseToken {
public record WildRange(long min, long max) implements Comparable<WildRange> {
public WildRange(long min, long max) {
if (min > max) {
throw new AssertionError("max > max");
throw new AssertionError("min > max");
}
this.min = min;
this.max = max;