@@ -72,10 +72,10 @@ private static class ParameterizedRunnerVisitor extends JavaIsoVisitor<Execution
7272 public J .ClassDeclaration visitClassDeclaration (J .ClassDeclaration classDecl , ExecutionContext executionContext ) {
7373 J .ClassDeclaration cd = super .visitClassDeclaration (classDecl , executionContext );
7474 Map <String , Object > params = getCursor ().pollMessage (classDecl .getId ().toString ());
75- String parametersMethodName = params != null ? (String )params .get (PARAMETERS_METHOD_NAME ) : null ;
76- List <Expression > parametersAnnotationArguments = params != null ? (List <Expression >)params .get (PARAMETERS_ANNOTATION_ARGUMENTS ) : null ;
77- List <Statement > constructorParams = params != null ? (List <Statement >)params .get (CONSTRUCTOR_ARGUMENTS ) : null ;
78- Map <Integer , Statement > fieldInjectionParams = params != null ? (Map <Integer , Statement >)params .get (FIELD_INJECTION_ARGUMENTS ) : null ;
75+ String parametersMethodName = params != null ? (String ) params .get (PARAMETERS_METHOD_NAME ) : null ;
76+ List <Expression > parametersAnnotationArguments = params != null ? (List <Expression >) params .get (PARAMETERS_ANNOTATION_ARGUMENTS ) : null ;
77+ List <Statement > constructorParams = params != null ? (List <Statement >) params .get (CONSTRUCTOR_ARGUMENTS ) : null ;
78+ Map <Integer , Statement > fieldInjectionParams = params != null ? (Map <Integer , Statement >) params .get (FIELD_INJECTION_ARGUMENTS ) : null ;
7979 String initMethodName = "init" + cd .getSimpleName ();
8080
8181 // Constructor Injected Test
@@ -95,7 +95,7 @@ else if (parametersMethodName != null && fieldInjectionParams != null) {
9595 public J .MethodDeclaration visitMethodDeclaration (J .MethodDeclaration method , ExecutionContext executionContext ) {
9696 J .MethodDeclaration m = super .visitMethodDeclaration (method , executionContext );
9797 Cursor classDeclCursor = getCursor ().dropParentUntil (J .ClassDeclaration .class ::isInstance );
98- Map <String , Object > params = classDeclCursor .computeMessageIfAbsent (((J .ClassDeclaration )classDeclCursor .getValue ()).getId ().toString (), v -> new HashMap <>());
98+ Map <String , Object > params = classDeclCursor .computeMessageIfAbsent (((J .ClassDeclaration ) classDeclCursor .getValue ()).getId ().toString (), v -> new HashMap <>());
9999 for (J .Annotation annotation : m .getLeadingAnnotations ()) {
100100 if (PARAMETERS .matches (annotation )) {
101101 params .put (PARAMETERS_ANNOTATION_ARGUMENTS , annotation .getArguments ());
@@ -113,7 +113,7 @@ public J.MethodDeclaration visitMethodDeclaration(J.MethodDeclaration method, Ex
113113 public J .VariableDeclarations visitVariableDeclarations (J .VariableDeclarations multiVariable , ExecutionContext executionContext ) {
114114 J .VariableDeclarations variableDeclarations = super .visitVariableDeclarations (multiVariable , executionContext );
115115 Cursor classDeclCursor = getCursor ().dropParentUntil (J .ClassDeclaration .class ::isInstance );
116- Map <String , Object > params = classDeclCursor .computeMessageIfAbsent (((J .ClassDeclaration )classDeclCursor .getValue ()).getId ().toString (), v -> new HashMap <>());
116+ Map <String , Object > params = classDeclCursor .computeMessageIfAbsent (((J .ClassDeclaration ) classDeclCursor .getValue ()).getId ().toString (), v -> new HashMap <>());
117117 J .Annotation parameterAnnotation = variableDeclarations .getLeadingAnnotations ().stream ().filter (PARAMETER ::matches ).findFirst ().orElse (null );
118118 if (parameterAnnotation != null ) {
119119 Integer position = 0 ;
0 commit comments