mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 02:14:44 +00:00
28 lines
991 B
Java
28 lines
991 B
Java
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 @lombok.Generated String getField() {
|
|
return this.field;
|
|
}
|
|
public @java.lang.SuppressWarnings({"unchecked"}) @lombok.Generated 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);
|
|
}
|
|
}
|