mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-16 02:15:36 +00:00
Added lombok.Lombok.preventNullAnalysis to the null test in @Cleanup to suppress
warnings about variables that cannot be null
This commit is contained in:
1 parent
98d8a9f63b
commit
a94243e062
15 files changed
+234
-65
No files matched your search
@@ -4,7 +4,7 @@ class CleanupName {
|
||||
try {
|
||||
System.out.println(o);
|
||||
} finally {
|
||||
if (o != null) {
|
||||
if (lombok.Lombok.preventNullAnalysis(o) != null) {
|
||||
o.toString();
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,7 @@ class CleanupName {
|
||||
try {
|
||||
System.out.println(o);
|
||||
} finally {
|
||||
if (o != null) {
|
||||
if (lombok.Lombok.preventNullAnalysis(o) != null) {
|
||||
o.toString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user