Skip to content

Commit

Permalink
refactor: Add a blank line around fields with annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jkschneider and TeamModerne committed Jun 12, 2024
1 parent 4e8ba68 commit 7ed8029
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public class LifecycleNonPrivate extends Recipe {
"org.junit.jupiter.api.AfterEach",
"org.junit.jupiter.api.BeforeAll",
"org.junit.jupiter.api.BeforeEach");

@SuppressWarnings("unchecked")
private static final TreeVisitor<?, ExecutionContext> PRECONDITION =
Preconditions.or(ANNOTATION_TYPES.stream().map(r -> new UsesType<>(r, false)).toArray(UsesType[]::new));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,10 @@ private static class ParameterizedRunnerToParameterizedTestsVisitor extends Java
private final J.ClassDeclaration scope;
private final String initMethodName;
private final List<Statement> parameterizedTestMethodParameters;

@Nullable
private final List<Expression> parameterizedTestAnnotationParameters;

private final String initStatementParamString;

private final JavaTemplate parameterizedTestTemplate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ void test() {
}
}
""";

@Language("java")
private static final String JAVA_AFTER = """
import org.junit.jupiter.api.Test;
Expand Down

0 comments on commit 7ed8029

Please sign in to comment.