[fixes #880] get rid of an unchecked cast warning for @Getter(lazy=true)

This commit is contained in:
Reinier Zwitserloot committed 2020-02-06 23:57:30 +01:00
1 parent 2e06cb3ff1
commit 8943b49dfe
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;
}
}