aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/SynchronizedOnStatic.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-ecj/SynchronizedOnStatic.java')
-rw-r--r--test/transform/resource/after-ecj/SynchronizedOnStatic.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/SynchronizedOnStatic.java b/test/transform/resource/after-ecj/SynchronizedOnStatic.java
new file mode 100644
index 00000000..20dd3514
--- /dev/null
+++ b/test/transform/resource/after-ecj/SynchronizedOnStatic.java
@@ -0,0 +1,31 @@
+class SynchronizedOnStatic<Z> {
+ static class Inner {
+ private static Object LCK = new Object[0];
+ <clinit>() {
+ }
+ Inner() {
+ super();
+ }
+ public @lombok.Synchronized("LCK") void foo() {
+ synchronized (SynchronizedOnStatic.Inner.LCK)
+ {
+ System.out.println();
+ }
+ }
+ }
+ class Inner2 {
+ private Object LCK = new Object[0];
+ Inner2() {
+ super();
+ }
+ public @lombok.Synchronized("LCK") void foo() {
+ synchronized (this.LCK)
+ {
+ System.out.println();
+ }
+ }
+ }
+ SynchronizedOnStatic() {
+ super();
+ }
+} \ No newline at end of file