@@ -59,8 +59,8 @@ public Expression visitExpression(Expression expression, ExecutionContext ctx) {
5959 Expression e = (Expression ) super .visitExpression (expression , ctx );
6060 if (TypeUtils .isOfClassType (e .getType (), "java.lang.Boolean" )) {
6161 if (isControlExpression (expression )) {
62- return JavaTemplate .builder ("Boolean.TRUE.equals(#{any(java.lang.Boolean)})" ). build ()
63- . apply ( updateCursor (e ), e .getCoordinates ().replace (), e );
62+ return JavaTemplate .apply ("Boolean.TRUE.equals(#{any(java.lang.Boolean)})" ,
63+ updateCursor (e ), e .getCoordinates ().replace (), e );
6464 }
6565 }
6666 return e ;
@@ -70,8 +70,8 @@ public Expression visitExpression(Expression expression, ExecutionContext ctx) {
7070 public J visitUnary (J .Unary unary , ExecutionContext executionContext ) {
7171 J .Unary un = (J .Unary ) super .visitUnary (unary , executionContext );
7272 if (J .Unary .Type .Not == un .getOperator () && TypeUtils .isOfClassType (un .getExpression ().getType (), "java.lang.Boolean" )) {
73- return JavaTemplate .builder ("Boolean.FALSE.equals(#{any(java.lang.Boolean)})" ). build ()
74- . apply ( updateCursor (un ), un .getCoordinates ().replace (), un .getExpression ());
73+ return JavaTemplate .apply ("Boolean.FALSE.equals(#{any(java.lang.Boolean)})" ,
74+ updateCursor (un ), un .getCoordinates ().replace (), un .getExpression ());
7575 }
7676 return un ;
7777 }
0 commit comments