mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 20:17:25 +00:00
[fixes #880] get rid of an unchecked cast warning for @Getter(lazy=true)
This commit is contained in:
19 files changed
+161
-39
No files matched your search
@@ -0,0 +1,11 @@
|
||||
class GetterLazyGenerics<E> {
|
||||
@lombok.Getter(lazy=true)
|
||||
private final E field = getAny();
|
||||
|
||||
@lombok.Getter(lazy=true)
|
||||
private final long field2 = System.currentTimeMillis();
|
||||
|
||||
public static <E> E getAny() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user