mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 14:17:48 +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
@@ -18,7 +18,7 @@ class CleanupPlain {
|
||||
}
|
||||
finally
|
||||
{
|
||||
if ((out != null))
|
||||
if ((lombok.Lombok.preventNullAnalysis(out) != null))
|
||||
{
|
||||
out.close();
|
||||
}
|
||||
@@ -26,7 +26,7 @@ class CleanupPlain {
|
||||
}
|
||||
finally
|
||||
{
|
||||
if ((in != null))
|
||||
if ((lombok.Lombok.preventNullAnalysis(in) != null))
|
||||
{
|
||||
in.close();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user