Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlloyd committed Jul 23, 2024
1 parent 2e5eedd commit 64a83fe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ default Predicate<String> fromRangeString(String range) {
return fromRangeString(range, 0, range.length());
}

// @formatter:off
/**
* Parse a range specification and return it as a predicate.
* Version ranges are governed by the following general syntax:
Expand Down Expand Up @@ -187,6 +188,7 @@ default Predicate<String> fromRangeString(String range) {
* @throws IllegalArgumentException if there is a syntax error in the range or the range cannot match any version
* @throws IndexOutOfBoundsException if the values for {@code start} or {@code end} are not valid
*/
// @formatter:on
default Predicate<String> fromRangeString(String range, int start, int end) {
Objects.checkFromToIndex(start, end, range.length());
return parseRange(range, start, end);
Expand Down Expand Up @@ -418,7 +420,7 @@ private Predicate<String> parseRangeMax(Predicate<String> min, String range, int
}
case ']': {
String high = range.substring(start, i);
if (min != null && ! min.test(high)) {
if (min != null && !min.test(high)) {
// low end must be higher than high end
throw Messages.msg.rangeDefiesVersionOrdering(range.substring(start, i + cnt));
}
Expand Down

0 comments on commit 64a83fe

Please sign in to comment.