mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 12:14:31 +00:00
Issue 154: Add null-check to @Cleanup
This commit is contained in:
1 parent
5897d9685e
commit
17bcfda43b
6 files changed
+67
-13
No files matched your search
@@ -10,7 +10,10 @@ class CleanupName {
|
||||
}
|
||||
finally
|
||||
{
|
||||
o.toString();
|
||||
if ((o != null))
|
||||
{
|
||||
o.toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
void test2() {
|
||||
@@ -21,7 +24,10 @@ class CleanupName {
|
||||
}
|
||||
finally
|
||||
{
|
||||
o.toString();
|
||||
if ((o != null))
|
||||
{
|
||||
o.toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user