diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-02-14 01:20:14 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-02-14 01:21:24 +0100 |
commit | 89f98da78d3ffd9e9f6f7151fcaf5e4329d2e8dd (patch) | |
tree | 7e77630855e4a66851f4c3972a54263f024e58a7 /test/transform/resource/before | |
parent | 15b09ee27466baa9107ce6556e9302191f1cd7b5 (diff) | |
download | lombok-89f98da78d3ffd9e9f6f7151fcaf5e4329d2e8dd.tar.gz lombok-89f98da78d3ffd9e9f6f7151fcaf5e4329d2e8dd.tar.bz2 lombok-89f98da78d3ffd9e9f6f7151fcaf5e4329d2e8dd.zip |
[fixes #678] `@Synchronize` an instance method on static variable no longer emits a warning.
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r-- | test/transform/resource/before/SynchronizedOnStatic.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/transform/resource/before/SynchronizedOnStatic.java b/test/transform/resource/before/SynchronizedOnStatic.java new file mode 100644 index 00000000..23c4818d --- /dev/null +++ b/test/transform/resource/before/SynchronizedOnStatic.java @@ -0,0 +1,16 @@ +class SynchronizedOnStatic<Z> { + static class Inner { + private static Object LCK = new Object[0]; + @lombok.Synchronized("LCK") + public void foo() { + System.out.println(); + } + } + class Inner2 { + private Object LCK = new Object[0]; + @lombok.Synchronized("LCK") + public void foo() { + System.out.println(); + } + } +} |