diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2020-06-30 17:22:38 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2020-07-02 23:15:14 +0200 |
commit | 84556ebb00af1817d521bc011333a0ed02162cc4 (patch) | |
tree | 85ffc41181c0fb576e04d1808c49e3e358883105 /test/transform/resource/after-ecj | |
parent | 9425e99b49d1a203c692fd2001ff3fd3d1612303 (diff) | |
download | lombok-84556ebb00af1817d521bc011333a0ed02162cc4.tar.gz lombok-84556ebb00af1817d521bc011333a0ed02162cc4.tar.bz2 lombok-84556ebb00af1817d521bc011333a0ed02162cc4.zip |
[fixes #2433] Add config key to turn off @SuppressWarnings("all")
Diffstat (limited to 'test/transform/resource/after-ecj')
-rw-r--r-- | test/transform/resource/after-ecj/SkipSuppressWarnings.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/SkipSuppressWarnings.java b/test/transform/resource/after-ecj/SkipSuppressWarnings.java new file mode 100644 index 00000000..53032519 --- /dev/null +++ b/test/transform/resource/after-ecj/SkipSuppressWarnings.java @@ -0,0 +1,27 @@ +class SkipSuppressWarnings { + private @lombok.Getter String field = ""; + private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference<java.lang.Object> field2 = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>(); + SkipSuppressWarnings() { + super(); + } + public String getField() { + return this.field; + } + public @java.lang.SuppressWarnings({"unchecked"}) String getField2() { + java.lang.Object value = this.field2.get(); + if ((value == null)) + { + synchronized (this.field2) + { + value = this.field2.get(); + if ((value == null)) + { + final String actualValue = ""; + value = ((actualValue == null) ? this.field2 : actualValue); + this.field2.set(value); + } + } + } + return (String) ((value == this.field2) ? null : value); + } +}
\ No newline at end of file |