TimestampAggregator: Avoid cross-classloader access of package-private field. (#4788)

* TimestampAggregator: Avoid cross-classloader access of package-private field.

* Simplify.

* Remove unused import.
This commit is contained in:
Gian Merlino 2017-09-13 09:52:01 -07:00 committed by Jihoon Son
parent 2ce8123bdb
commit eb6791a60c
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ import java.util.Comparator;
public class TimestampAggregator implements Aggregator public class TimestampAggregator implements Aggregator
{ {
static final Comparator COMPARATOR = LongMaxAggregator.COMPARATOR; static final Comparator COMPARATOR = Comparator.comparingLong(n -> ((Number) n).longValue());
static Object combineValues(Comparator<Long> comparator, Object lhs, Object rhs) static Object combineValues(Comparator<Long> comparator, Object lhs, Object rhs)
{ {