Skip to content

Commit

Permalink
Fix UT for JDK8
Browse files Browse the repository at this point in the history
  • Loading branch information
manolama committed Oct 12, 2020
1 parent 0168aab commit a7470fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/core/TestTsdbQueryQueries.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import java.util.List;
import java.util.Map;

import net.opentsdb.query.filter.TagVFilter;
import net.opentsdb.query.filter.TagVLiteralOrFilter;
import net.opentsdb.rollup.RollupConfig;
import net.opentsdb.rollup.RollupInterval;
Expand Down Expand Up @@ -1606,7 +1607,7 @@ public void runRollupFiltering() throws Exception {
sub.setMetric(METRIC_STRING);
sub.setAggregator("sum");
sub.setDownsample("1h-sum");
sub.setFilters(Lists.newArrayList(new TagVLiteralOrFilter("host", TAGV_STRING)));
sub.setFilters(Lists.<TagVFilter>newArrayList(new TagVLiteralOrFilter("host", TAGV_STRING)));

ts_query.setQueries(Arrays.asList(sub));
ts_query.validateAndSetQuery();
Expand Down

0 comments on commit a7470fe

Please sign in to comment.