Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
rickie committed Aug 29, 2023
1 parent fb47329 commit 323c3c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ void replacement() {
@Test
void ignoreClassesAnnotatedWithLombokData() {
BugCheckerRefactoringTestHelper.newInstance(DirectReturn.class, getClass())
.addInputLines("Data.java", "package lombok;", "public @interface Data {}")
.addInputLines("Data.java", "package lombok;", "", "public @interface Data {}")
.expectUnchanged()
.addInputLines(
"A.java",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void isSubTypeOfBoundTypeUnknown() {
@Test
void hasLombokDataAnnotation() {
CompilationTestHelper.newInstance(LombokDataAnnotationMatcher.class, getClass())
.addSourceLines("Data.java", "package lombok;", "public @interface Data {}")
.addSourceLines("Data.java", "package lombok;", "", "public @interface Data {}")
.addSourceLines(
"A.java",
"import lombok.Data;",
Expand All @@ -120,13 +120,13 @@ void hasLombokDataAnnotation() {
"public class A {",
" private String field;",
"",
" static class B { }",
" static class B {}",
"",
" @Data",
" // BUG: Diagnostic contains:",
" static class C { }",
" static class C {}",
"}")
.addSourceLines("D.java", "import lombok.Data;", "", "public class D { }")
.addSourceLines("D.java", "public class D {}")
.doTest();
}

Expand Down Expand Up @@ -159,7 +159,7 @@ public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState
}
}

/** A {@link BugChecker} that delegates to {@link MoreMatchers#HAS_LOMBOK_DATA} . */
/** A {@link BugChecker} that delegates to {@link MoreMatchers#HAS_LOMBOK_DATA}. */
@BugPattern(summary = "Interacts with `MoreMatchers` for testing purposes", severity = ERROR)
public static final class LombokDataAnnotationMatcher extends BugChecker
implements ClassTreeMatcher {
Expand Down

0 comments on commit 323c3c3

Please sign in to comment.