aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/GetterOnMethodErrors2.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-02-11 22:34:48 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-02-11 22:34:48 +0100
commitaafd83079a3000d3deb6e40a182849da2509fbfb (patch)
treecf87951eee9bb098bb96ecc3c02c6f1ab34c405d /test/transform/resource/after-delombok/GetterOnMethodErrors2.java
parentef8769d3180b2c6de91a64f69dfa23a2e6e449b9 (diff)
downloadlombok-aafd83079a3000d3deb6e40a182849da2509fbfb.tar.gz
lombok-aafd83079a3000d3deb6e40a182849da2509fbfb.tar.bz2
lombok-aafd83079a3000d3deb6e40a182849da2509fbfb.zip
BIG commit:
* re-introduction of onMethod/onConstructor/onParam * tests checking error/warnings rewritten to be more heuristic, in order to accomodate difference in messaging between java6 and java 7 * Ability to eliminate java's own output of erroneous error messages (heh); i.e. those messages that are invalidated by lombok's actions. This mechanism is used for onMethod/onConstructor/onParam * First steps to unifying a billion setGeneratedBy calls into a single visitor traversal for eclipse' HandleGetter/Setter/Constructor/Wither * To simplify 'zooming in' the tests on just a few files, added an 'accept' mechanism. * Updated copyright headers of website to 2013.
Diffstat (limited to 'test/transform/resource/after-delombok/GetterOnMethodErrors2.java')
-rw-r--r--test/transform/resource/after-delombok/GetterOnMethodErrors2.java48
1 files changed, 48 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/GetterOnMethodErrors2.java b/test/transform/resource/after-delombok/GetterOnMethodErrors2.java
new file mode 100644
index 00000000..639022d0
--- /dev/null
+++ b/test/transform/resource/after-delombok/GetterOnMethodErrors2.java
@@ -0,0 +1,48 @@
+class GetterOnMethodErrors2 {
+ private int bad1;
+ private int bad2;
+ private int bad3;
+ private int bad4;
+ private int good1;
+ private int good2;
+ private int good3;
+ private int good4;
+ public @interface Test {
+ }
+ @java.lang.SuppressWarnings("all")
+ public int getBad1() {
+ return this.bad1;
+ }
+ @java.lang.SuppressWarnings("all")
+ public int getBad2() {
+ return this.bad2;
+ }
+ @Deprecated
+ @java.lang.SuppressWarnings("all")
+ public int getBad3() {
+ return this.bad3;
+ }
+ @java.lang.SuppressWarnings("all")
+ public int getBad4() {
+ return this.bad4;
+ }
+ @java.lang.SuppressWarnings("all")
+ public int getGood1() {
+ return this.good1;
+ }
+ @java.lang.SuppressWarnings("all")
+ public int getGood2() {
+ return this.good2;
+ }
+ @Deprecated
+ @java.lang.SuppressWarnings("all")
+ public int getGood3() {
+ return this.good3;
+ }
+ @Deprecated
+ @Test
+ @java.lang.SuppressWarnings("all")
+ public int getGood4() {
+ return this.good4;
+ }
+}