Skip to content

Commit

Permalink
HBASE-20484 Remove the unnecessary autoboxing in FilterListBase
Browse files Browse the repository at this point in the history
Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
  • Loading branch information
guangxuCheng authored and chia7712 committed Apr 26, 2018
1 parent 8a30acf commit f39ecac
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -56,8 +56,8 @@ protected static boolean checkAndGetReversed(List<Filter> rowFilters, boolean de
if (rowFilters.isEmpty()) {
return defaultValue;
}
Boolean retValue = rowFilters.get(0).isReversed();
boolean allEqual = rowFilters.stream().map(Filter::isReversed).allMatch(retValue::equals);
boolean retValue = rowFilters.get(0).isReversed();
boolean allEqual = rowFilters.stream().allMatch(f -> f.isReversed() == retValue);
if (!allEqual) {
throw new IllegalArgumentException("Filters in the list must have the same reversed flag");
}
Expand Down

0 comments on commit f39ecac

Please sign in to comment.