diff --git a/tools/asu/src/main/java/io/github/applecommander/applesingle/tools/asu/IntRange.java b/tools/asu/src/main/java/io/github/applecommander/applesingle/tools/asu/IntRange.java index d4cf696..ea2a488 100644 --- a/tools/asu/src/main/java/io/github/applecommander/applesingle/tools/asu/IntRange.java +++ b/tools/asu/src/main/java/io/github/applecommander/applesingle/tools/asu/IntRange.java @@ -17,7 +17,7 @@ public class IntRange { /** Create an integer range. */ public static IntRange of(int low, int high) { - if (low == high) throw new UnsupportedOperationException("low and high cannot be the same"); + if (low > high) throw new UnsupportedOperationException("low cannot be greater than high"); return new IntRange(Math.min(low,high), Math.max(low,high)); } /** Normalize a list by combining all integer ranges that match. */