Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
fdaugan committed May 12, 2024
1 parent 49a848d commit c06dbc6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

/**
* Test class of {@link SecuritySpringDataListener}
Expand Down Expand Up @@ -67,7 +66,7 @@ private String assertFunction(final String name, final int nbQueryParam, final S
}).when(translator).render(Mockito.any(SqlAstNode.class), Mockito.any(SqlAstNodeRenderingMode.class));
var astParams = Arrays.stream(args).map(a ->
new QueryLiteral<>(a,
new NamedBasicTypeImpl<>(new StringJavaType(), new VarcharJdbcType(), a))).collect(Collectors.toList());
new NamedBasicTypeImpl<>(new StringJavaType(), new VarcharJdbcType(), a))).toList();

final var sessionFactory = (SessionFactoryImpl) emf.getNativeEntityManagerFactory();
final var sqlFunction = (StandardSQLFunction) sessionFactory.getQueryEngine().getSqmFunctionRegistry().findFunctionDescriptor(name);
Expand Down

0 comments on commit c06dbc6

Please sign in to comment.