From ac02e67eb8fb14cb91bfd156bbee850d3b66d2a5 Mon Sep 17 00:00:00 2001 From: currantw Date: Thu, 7 Nov 2024 18:38:38 -0800 Subject: [PATCH] More Spotless Signed-off-by: currantw --- .../predicate/UnaryPredicateOperator.java | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/core/src/main/java/org/opensearch/sql/expression/operator/predicate/UnaryPredicateOperator.java b/core/src/main/java/org/opensearch/sql/expression/operator/predicate/UnaryPredicateOperator.java index 6b190bbcd0..7d54dd8339 100644 --- a/core/src/main/java/org/opensearch/sql/expression/operator/predicate/UnaryPredicateOperator.java +++ b/core/src/main/java/org/opensearch/sql/expression/operator/predicate/UnaryPredicateOperator.java @@ -5,21 +5,20 @@ package org.opensearch.sql.expression.operator.predicate; +import static org.opensearch.sql.data.model.ExprValueUtils.LITERAL_NULL; +import static org.opensearch.sql.data.model.ExprValueUtils.LITERAL_TRUE; +import static org.opensearch.sql.data.type.ExprCoreType.BOOLEAN; +import static org.opensearch.sql.expression.function.FunctionDSL.impl; + +import java.util.Arrays; +import java.util.List; +import java.util.stream.Collectors; import lombok.experimental.UtilityClass; import org.opensearch.sql.data.model.ExprBooleanValue; import org.opensearch.sql.data.model.ExprValue; import org.opensearch.sql.data.type.ExprCoreType; import org.opensearch.sql.expression.function.*; -import java.util.Arrays; -import java.util.List; -import java.util.stream.Collectors; - -import static org.opensearch.sql.data.model.ExprValueUtils.LITERAL_NULL; -import static org.opensearch.sql.data.model.ExprValueUtils.LITERAL_TRUE; -import static org.opensearch.sql.data.type.ExprCoreType.BOOLEAN; -import static org.opensearch.sql.expression.function.FunctionDSL.impl; - /** * The definition of unary predicate function not, Accepts one Boolean value and produces a Boolean. */ @@ -129,10 +128,10 @@ private static DefaultFunctionResolver nullIf() { List typeList = ExprCoreType.coreTypes(); return FunctionDSL.define( - functionName, - typeList.stream() - .map(v -> impl((UnaryPredicateOperator::exprNullIf), v, v, v)) - .collect(Collectors.toList())); + functionName, + typeList.stream() + .map(v -> impl((UnaryPredicateOperator::exprNullIf), v, v, v)) + .collect(Collectors.toList())); } /**