mirror of
https://github.com/AppleCommander/applesingle.git
synced 2024-06-10 03:29:34 +00:00
AppleSingle entry can have a length of 0. Adjusting the 'analyze'
related edit.
This commit is contained in:
parent
b21a7bb341
commit
0b1459931b
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue
Block a user