aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/TestOperators.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2013-11-19 21:02:59 +0100
committerRoel Spilker <r.spilker@gmail.com>2013-11-19 21:02:59 +0100
commit78b2d6919e35887940f9f11b6ae1731245739b83 (patch)
tree0dc305883c19a862a38669374c5614e26480d4b8 /test/transform/resource/after-ecj/TestOperators.java
parent5deb185591904d275cb06eea85c0d739587fc738 (diff)
parent83b7e77b0cce6cd5993b17f36164271accdd281c (diff)
downloadlombok-78b2d6919e35887940f9f11b6ae1731245739b83.tar.gz
lombok-78b2d6919e35887940f9f11b6ae1731245739b83.tar.bz2
lombok-78b2d6919e35887940f9f11b6ae1731245739b83.zip
Merge branch 'master' of github.com:rzwitserloot/lombok
Conflicts: src/delombok/lombok/delombok/DelombokApp.java
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);
+ }
+}