mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 08:15:48 +00:00
[jdk17] Fix ThisParamter test
This commit is contained in:
1 parent
df2601f9db
commit
7bea429ea7
2 files changed
+7
-7
No files matched your search
@@ -16,17 +16,17 @@ class ThisParameter {
|
||||
void runtimeTagged(@RuntimeTagged("runtime") ThisParameter this) {
|
||||
// no content
|
||||
}
|
||||
@Target(ElementType.PARAMETER)
|
||||
@Target(ElementType.TYPE_USE)
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@interface SourceTagged {
|
||||
String value();
|
||||
}
|
||||
@Target(ElementType.PARAMETER)
|
||||
@Target(ElementType.TYPE_USE)
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@interface ClassTagged {
|
||||
String value();
|
||||
}
|
||||
@Target(ElementType.PARAMETER)
|
||||
@Target(ElementType.TYPE_USE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@interface RuntimeTagged {
|
||||
String value();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// version 9: the 'this' param option exists in java8, but is bugged, in that annotations are not allowed on them, even without a @Target. The only purpose of the this param is annotations, so, boy, isn't that a punch in the face?
|
||||
// version 8:
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
@@ -22,19 +22,19 @@ class ThisParameter {
|
||||
// no content
|
||||
}
|
||||
|
||||
@Target(ElementType.PARAMETER)
|
||||
@Target(ElementType.TYPE_USE)
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@interface SourceTagged {
|
||||
String value();
|
||||
}
|
||||
|
||||
@Target(ElementType.PARAMETER)
|
||||
@Target(ElementType.TYPE_USE)
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@interface ClassTagged {
|
||||
String value();
|
||||
}
|
||||
|
||||
@Target(ElementType.PARAMETER)
|
||||
@Target(ElementType.TYPE_USE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@interface RuntimeTagged {
|
||||
String value();
|
||||
|
||||
Reference in new issue
Block a user