From 304d9738f4dbba746ea08ef64daba2d7f7521239 Mon Sep 17 00:00:00 2001 From: Pranav Bhole Date: Tue, 19 Sep 2023 14:00:38 -0700 Subject: [PATCH] fix static check --- .../java/org/apache/druid/math/expr/BuiltInExprMacros.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/processing/src/main/java/org/apache/druid/math/expr/BuiltInExprMacros.java b/processing/src/main/java/org/apache/druid/math/expr/BuiltInExprMacros.java index 117495f0c139..c1298cd79297 100644 --- a/processing/src/main/java/org/apache/druid/math/expr/BuiltInExprMacros.java +++ b/processing/src/main/java/org/apache/druid/math/expr/BuiltInExprMacros.java @@ -19,11 +19,11 @@ package org.apache.druid.math.expr; -import com.google.common.collect.Lists; import org.apache.druid.java.util.common.StringUtils; import org.apache.druid.segment.column.TypeStrategy; import javax.annotation.Nullable; +import java.util.Collections; import java.util.List; import java.util.stream.Collectors; @@ -184,7 +184,7 @@ public ExprEval eval(ObjectBinding bindings) @Override public Expr visit(Shuttle shuttle) { - return shuttle.visit(apply(shuttle.visitAll(Lists.newArrayList(arg)))); + return shuttle.visit(apply(shuttle.visitAll(Collections.singletonList(arg)))); } @Nullable