mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 08:18:29 +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
@@ -10,7 +10,7 @@ class CleanupName {
|
||||
}
|
||||
finally
|
||||
{
|
||||
if ((o != null))
|
||||
if ((lombok.Lombok.preventNullAnalysis(o) != null))
|
||||
{
|
||||
o.toString();
|
||||
}
|
||||
@@ -24,7 +24,7 @@ class CleanupName {
|
||||
}
|
||||
finally
|
||||
{
|
||||
if ((o != null))
|
||||
if ((lombok.Lombok.preventNullAnalysis(o) != null))
|
||||
{
|
||||
o.toString();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user