Skip to content

Commit

Permalink
Convert anonymous class to lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
dain committed Mar 13, 2019
1 parent 2b9dbf7 commit ca1d730
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions presto-orc/src/main/java/io/prestosql/orc/OrcPredicate.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,7 @@

public interface OrcPredicate
{
OrcPredicate TRUE = new OrcPredicate()
{
@Override
public boolean matches(long numberOfRows, Map<Integer, ColumnStatistics> statisticsByColumnIndex)
{
return true;
}
};
OrcPredicate TRUE = (numberOfRows, statisticsByColumnIndex) -> true;

/**
* Should the ORC reader process a file section with the specified statistics.
Expand Down

0 comments on commit ca1d730

Please sign in to comment.