aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/TestOperators.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-10-27 22:32:44 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-10-27 22:32:44 +0100
commit5cdb0757d39d100c76bbca63734fb83b4cb13753 (patch)
tree0262ce9f265201d27e6d1a110964fafca1c5b9bd /test/transform/resource/after-ecj/TestOperators.java
parent601cd66babeaec0963b8cadf2190fd48708d0d33 (diff)
downloadlombok-5cdb0757d39d100c76bbca63734fb83b4cb13753.tar.gz
lombok-5cdb0757d39d100c76bbca63734fb83b4cb13753.tar.bz2
lombok-5cdb0757d39d100c76bbca63734fb83b4cb13753.zip
[issue 598] JDK8 update broke assignment-with-operator in delombok.
Diffstat (limited to 'test/transform/resource/after-ecj/TestOperators.java')
-rw-r--r--test/transform/resource/after-ecj/TestOperators.java51
1 files changed, 51 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/TestOperators.java b/test/transform/resource/after-ecj/TestOperators.java
new file mode 100644
index 00000000..8a78ceeb
--- /dev/null
+++ b/test/transform/resource/after-ecj/TestOperators.java
@@ -0,0 +1,51 @@
+class TestOperators {
+ int x = 10;
+ TestOperators() {
+ super();
+ }
+ public void test() {
+ x = 12;
+ int a = (+ x);
+ boolean d = true;
+ boolean e = false;
+ boolean b;
+ a = (- x);
+ b = (! d);
+ a = (~ x);
+ a = (++ x);
+ a = (-- x);
+ a = (x ++);
+ a = (x --);
+ b = (d || e);
+ b = (d && e);
+ a = (x | a);
+ a = (x ^ a);
+ a = (x & a);
+ b = (a == x);
+ b = (a != x);
+ b = (a < x);
+ b = (a > x);
+ b = (a <= x);
+ b = (a >= x);
+ a = (a << x);
+ a = (a >> x);
+ a = (a >>> x);
+ a = (a + x);
+ a = (a - x);
+ a = (a * x);
+ a = (a / x);
+ a = (a % x);
+ a |= x;
+ a ^= x;
+ a &= x;
+ a <<= x;
+ a >>= x;
+ a >>>= x;
+ a += x;
+ a -= x;
+ a *= x;
+ a /= x;
+ a %= x;
+ a = ((a > x) ? 1 : 0);
+ }
+}