-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix type detection of nested annotations
- Loading branch information
Showing
30 changed files
with
866 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package test.lombok.other; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
|
||
public class Other { | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface TA { | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
test/transform/resource/after-delombok/NestedClassAndAnnotationNestedInImportedSibling.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package test.lombok; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import test.lombok.NestedClassAndAnnotationNestedInImportedSibling.Other.OtherNested.TA; | ||
|
||
public class NestedClassAndAnnotationNestedInImportedSibling { | ||
|
||
public static class Inner { | ||
|
||
@TA | ||
private final int someVal; | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public Inner(@TA final int someVal) { | ||
this.someVal = someVal; | ||
} | ||
|
||
@TA | ||
@java.lang.SuppressWarnings("all") | ||
public int getSomeVal() { | ||
return this.someVal; | ||
} | ||
} | ||
|
||
public static class Other { | ||
|
||
public static class OtherNested { | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface TA { | ||
} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...transform/resource/after-delombok/NestedClassAndAnnotationNestedInNonImportedSibling.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package test.lombok; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
|
||
public class NestedClassAndAnnotationNestedInNonImportedSibling { | ||
|
||
public static class Inner { | ||
@Other.OtherNested.TA | ||
private final int someVal; | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public Inner(@Other.OtherNested.TA final int someVal) { | ||
this.someVal = someVal; | ||
} | ||
|
||
@Other.OtherNested.TA | ||
@java.lang.SuppressWarnings("all") | ||
public int getSomeVal() { | ||
return this.someVal; | ||
} | ||
} | ||
|
||
public static class Other { | ||
|
||
public static class OtherNested { | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface TA { | ||
} | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
test/transform/resource/after-delombok/NestedClassAndNestedAnnotation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package test.lombok; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
|
||
public class NestedClassAndNestedAnnotation { | ||
|
||
public static class Inner { | ||
@TA | ||
private final int someVal; | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public Inner(@TA final int someVal) { | ||
this.someVal = someVal; | ||
} | ||
|
||
@TA | ||
@java.lang.SuppressWarnings("all") | ||
public int getSomeVal() { | ||
return this.someVal; | ||
} | ||
} | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface TA { | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
test/transform/resource/after-delombok/NestedClassAndNestedAnnotationImported.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package test.lombok; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import test.lombok.NestedClassAndNestedAnnotationImported.Other.OtherNested.TA; | ||
|
||
public class NestedClassAndNestedAnnotationImported { | ||
|
||
public static class Inner { | ||
@TA | ||
private final int someVal; | ||
|
||
@java.lang.SuppressWarnings("all") | ||
public Inner(@TA final int someVal) { | ||
this.someVal = someVal; | ||
} | ||
|
||
@TA | ||
@java.lang.SuppressWarnings("all") | ||
public int getSomeVal() { | ||
return this.someVal; | ||
} | ||
} | ||
|
||
public static class Other { | ||
|
||
public static class OtherNested { | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface TA { | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.