aboutsummaryrefslogtreecommitdiff
path: root/test/pretty/resource/before/ThisParameter.java
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2021-08-18 17:37:54 +0200
committerRawi01 <Rawi01@users.noreply.github.com>2021-08-18 17:37:54 +0200
commit7bea429ea78204365dafde4f69c4e4c2a4b82587 (patch)
tree86c4540d5dc47b18f96997cc4e93ec896ffd99b7 /test/pretty/resource/before/ThisParameter.java
parentdf2601f9dba97ab1a10e7f6be5222968f3335150 (diff)
downloadlombok-7bea429ea78204365dafde4f69c4e4c2a4b82587.tar.gz
lombok-7bea429ea78204365dafde4f69c4e4c2a4b82587.tar.bz2
lombok-7bea429ea78204365dafde4f69c4e4c2a4b82587.zip
[jdk17] Fix ThisParamter test
Diffstat (limited to 'test/pretty/resource/before/ThisParameter.java')
-rw-r--r--test/pretty/resource/before/ThisParameter.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/pretty/resource/before/ThisParameter.java b/test/pretty/resource/before/ThisParameter.java
index e37651cb..42e4237e 100644
--- a/test/pretty/resource/before/ThisParameter.java
+++ b/test/pretty/resource/before/ThisParameter.java
@@ -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();