Skip to content

Commit 5163467

Browse files
committed
Stop imports from one AST polluting checking of another AST
Fixes gh-110
1 parent 9b1f20d commit 5163467

File tree

1 file changed

+1
-0
lines changed
  • spring-javaformat/spring-javaformat-checkstyle/src/main/java/io/spring/javaformat/checkstyle/check

1 file changed

+1
-0
lines changed

spring-javaformat/spring-javaformat-checkstyle/src/main/java/io/spring/javaformat/checkstyle/check/SpringJUnit5Check.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public int[] getAcceptableTokens() {
6969

7070
@Override
7171
public void beginTree(DetailAST rootAST) {
72+
this.imports.clear();
7273
this.testMethods.clear();
7374
}
7475

0 commit comments

Comments
 (0)