aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-08-12 22:51:13 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-08-12 23:13:11 +0200
commit95cf815285ee736d3bc8119773139cb4fe0c1fb4 (patch)
treebf06026c5e29da9886b932aaebb9e6f4735d8d1f /test
parentdf69425550d55da3de07f922fced3872432cd9d3 (diff)
downloadlombok-95cf815285ee736d3bc8119773139cb4fe0c1fb4.tar.gz
lombok-95cf815285ee736d3bc8119773139cb4fe0c1fb4.tar.bz2
lombok-95cf815285ee736d3bc8119773139cb4fe0c1fb4.zip
replaced double underscore as new standard way of writing the dummy annotation for onX instead of single underscore, which emits warnings on javac8+.
Also made dollars and Xes legal in addition to underscores, in case double underscore disappears later too.
Diffstat (limited to 'test')
-rw-r--r--test/transform/resource/before/Constructors.java2
-rw-r--r--test/transform/resource/before/GetterOnMethod.java4
-rw-r--r--test/transform/resource/before/GetterOnMethodErrors.java2
-rw-r--r--test/transform/resource/before/GetterOnMethodErrors2.java14
-rw-r--r--test/transform/resource/before/SetterOnMethodOnParam.java4
-rw-r--r--test/transform/resource/messages-delombok/GetterOnMethodErrors2.java.messages8
-rw-r--r--test/transform/resource/messages-ecj/GetterOnMethodErrors2.java.messages8
7 files changed, 21 insertions, 21 deletions
diff --git a/test/transform/resource/before/Constructors.java b/test/transform/resource/before/Constructors.java
index 0ab7b7f0..45b3a199 100644
--- a/test/transform/resource/before/Constructors.java
+++ b/test/transform/resource/before/Constructors.java
@@ -10,7 +10,7 @@
final int x;
String name;
}
-@lombok.RequiredArgsConstructor(onConstructor=@_(@Deprecated)) class RequiredArgsConstructorWithAnnotations {
+@lombok.RequiredArgsConstructor(onConstructor=@__(@Deprecated)) class RequiredArgsConstructorWithAnnotations {
final int x;
String name;
}
diff --git a/test/transform/resource/before/GetterOnMethod.java b/test/transform/resource/before/GetterOnMethod.java
index 558f3f64..3e56a66e 100644
--- a/test/transform/resource/before/GetterOnMethod.java
+++ b/test/transform/resource/before/GetterOnMethod.java
@@ -1,6 +1,6 @@
class GetterOnMethod {
- @lombok.Getter(onMethod=@_(@Deprecated)) int i;
- @lombok.Getter(onMethod=@_({@java.lang.Deprecated, @Test})) int j, k;
+ @lombok.Getter(onMethod=@__(@Deprecated)) int i;
+ @lombok.Getter(onMethod=@__({@java.lang.Deprecated, @Test})) int j, k;
public @interface Test {
}
diff --git a/test/transform/resource/before/GetterOnMethodErrors.java b/test/transform/resource/before/GetterOnMethodErrors.java
index ae5d5b54..ec4704f0 100644
--- a/test/transform/resource/before/GetterOnMethodErrors.java
+++ b/test/transform/resource/before/GetterOnMethodErrors.java
@@ -1,6 +1,6 @@
class PlaceFillerToMakeSurePositionIsRelevant {
}
-@lombok.Getter(onMethod=@_(@Deprecated))
+@lombok.Getter(onMethod=@__(@Deprecated))
class GetterOnMethodErrors {
private int test;
}
diff --git a/test/transform/resource/before/GetterOnMethodErrors2.java b/test/transform/resource/before/GetterOnMethodErrors2.java
index 423183b9..2fd98c83 100644
--- a/test/transform/resource/before/GetterOnMethodErrors2.java
+++ b/test/transform/resource/before/GetterOnMethodErrors2.java
@@ -1,12 +1,12 @@
class GetterOnMethodErrors2 {
@lombok.Getter(onMethod=@_A_(@Deprecated)) private int bad1;
- @lombok.Getter(onMethod=@_(5)) private int bad2;
- @lombok.Getter(onMethod=@_({@Deprecated, 5})) private int bad3;
- @lombok.Getter(onMethod=@_(bar=@Deprecated)) private int bad4;
- @lombok.Getter(onMethod=@_) private int good1;
- @lombok.Getter(onMethod=@_()) private int good2;
- @lombok.Getter(onMethod=@_(value=@Deprecated)) private int good3;
- @lombok.Getter(onMethod=@_(value={@Deprecated, @Test})) private int good4;
+ @lombok.Getter(onMethod=@__(5)) private int bad2;
+ @lombok.Getter(onMethod=@__({@Deprecated, 5})) private int bad3;
+ @lombok.Getter(onMethod=@$(bar=@Deprecated)) private int bad4;
+ @lombok.Getter(onMethod=@__) private int good1;
+ @lombok.Getter(onMethod=@X()) private int good2;
+ @lombok.Getter(onMethod=@__(value=@Deprecated)) private int good3;
+ @lombok.Getter(onMethod=@xXx$$(value={@Deprecated, @Test})) private int good4;
public @interface Test {
}
}
diff --git a/test/transform/resource/before/SetterOnMethodOnParam.java b/test/transform/resource/before/SetterOnMethodOnParam.java
index 70f3dc8c..4e042cf4 100644
--- a/test/transform/resource/before/SetterOnMethodOnParam.java
+++ b/test/transform/resource/before/SetterOnMethodOnParam.java
@@ -1,6 +1,6 @@
class SetterOnMethodOnParam {
- @lombok.Setter(onMethod=@_(@Deprecated)) int i;
- @lombok.Setter(onMethod=@_({@java.lang.Deprecated, @Test}), onParam=@_(@Test)) int j, k;
+ @lombok.Setter(onMethod=@__(@Deprecated)) int i;
+ @lombok.Setter(onMethod=@__({@java.lang.Deprecated, @Test}), onParam=@__(@Test)) int j, k;
public @interface Test {
}
diff --git a/test/transform/resource/messages-delombok/GetterOnMethodErrors2.java.messages b/test/transform/resource/messages-delombok/GetterOnMethodErrors2.java.messages
index ead040a5..b5bad45b 100644
--- a/test/transform/resource/messages-delombok/GetterOnMethodErrors2.java.messages
+++ b/test/transform/resource/messages-delombok/GetterOnMethodErrors2.java.messages
@@ -1,4 +1,4 @@
-2:9 The correct format is @Getter(onMethod=@_({@SomeAnnotation, @SomeOtherAnnotation}))
-3:9 The correct format is @Getter(onMethod=@_({@SomeAnnotation, @SomeOtherAnnotation}))
-4:9 The correct format is @Getter(onMethod=@_({@SomeAnnotation, @SomeOtherAnnotation}))
-5:9 The correct format is @Getter(onMethod=@_({@SomeAnnotation, @SomeOtherAnnotation}))
+2:9 The correct format is @Getter(onMethod=@__({@SomeAnnotation, @SomeOtherAnnotation}))
+3:9 The correct format is @Getter(onMethod=@__({@SomeAnnotation, @SomeOtherAnnotation}))
+4:9 The correct format is @Getter(onMethod=@__({@SomeAnnotation, @SomeOtherAnnotation}))
+5:9 The correct format is @Getter(onMethod=@__({@SomeAnnotation, @SomeOtherAnnotation}))
diff --git a/test/transform/resource/messages-ecj/GetterOnMethodErrors2.java.messages b/test/transform/resource/messages-ecj/GetterOnMethodErrors2.java.messages
index 6b949f41..f87b9f13 100644
--- a/test/transform/resource/messages-ecj/GetterOnMethodErrors2.java.messages
+++ b/test/transform/resource/messages-ecj/GetterOnMethodErrors2.java.messages
@@ -1,4 +1,4 @@
-2:31 The correct format is @Getter(onMethod=@_({@SomeAnnotation, @SomeOtherAnnotation}))
-3:93 The correct format is @Getter(onMethod=@_({@SomeAnnotation, @SomeOtherAnnotation}))
-4:143 The correct format is @Getter(onMethod=@_({@SomeAnnotation, @SomeOtherAnnotation}))
-5:208 The correct format is @Getter(onMethod=@_({@SomeAnnotation, @SomeOtherAnnotation}))
+2:31 The correct format is @Getter(onMethod=@__({@SomeAnnotation, @SomeOtherAnnotation}))
+3:93 The correct format is @Getter(onMethod=@__({@SomeAnnotation, @SomeOtherAnnotation}))
+4:144 The correct format is @Getter(onMethod=@__({@SomeAnnotation, @SomeOtherAnnotation}))
+5:210 The correct format is @Getter(onMethod=@__({@SomeAnnotation, @SomeOtherAnnotation}))