aboutsummaryrefslogtreecommitdiff
path: root/test/pretty/resource/before
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2020-05-07 23:26:51 +0200
committerRoel Spilker <r.spilker@gmail.com>2020-05-07 23:27:17 +0200
commitca5bd2868af828ec6b26c91b2398e8c6dbf1c24e (patch)
treebd605bf38ab2cd97f6290370159e74887aaf2666 /test/pretty/resource/before
parent20cce2049de56d5a71c6dcc376d6f4088d4552bc (diff)
downloadlombok-ca5bd2868af828ec6b26c91b2398e8c6dbf1c24e.tar.gz
lombok-ca5bd2868af828ec6b26c91b2398e8c6dbf1c24e.tar.bz2
lombok-ca5bd2868af828ec6b26c91b2398e8c6dbf1c24e.zip
Delombok prints the ReceiverParameter (this), fixes #2444.
Diffstat (limited to 'test/pretty/resource/before')
-rw-r--r--test/pretty/resource/before/ThisParameter.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/test/pretty/resource/before/ThisParameter.java b/test/pretty/resource/before/ThisParameter.java
new file mode 100644
index 00000000..d95c0261
--- /dev/null
+++ b/test/pretty/resource/before/ThisParameter.java
@@ -0,0 +1,41 @@
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+class ThisParameter {
+
+ void untagged(ThisParameter this, int i) {
+ // no content
+ }
+
+ void sourceTagged(@SourceTagged("source") ThisParameter this) {
+ // no content
+ }
+
+ void classTagged(@ClassTagged("class") ThisParameter this) {
+ // no content
+ }
+
+ void runtimeTagged(@RuntimeTagged("runtime") ThisParameter this) {
+ // no content
+ }
+
+ @Target(ElementType.PARAMETER)
+ @Retention(RetentionPolicy.SOURCE)
+ @interface SourceTagged {
+ String value();
+ }
+
+ @Target(ElementType.PARAMETER)
+ @Retention(RetentionPolicy.CLASS)
+ @interface ClassTagged {
+ String value();
+ }
+
+ @Target(ElementType.PARAMETER)
+ @Retention(RetentionPolicy.RUNTIME)
+ @interface RuntimeTagged {
+ String value();
+ }
+}