aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2010-11-09 00:37:06 +0100
committerRoel Spilker <r.spilker@gmail.com>2010-11-09 00:37:06 +0100
commita94243e06202a274a9499d1c0e79aeccb1aef5cd (patch)
tree1dc46be3d32e92903f48f58c25823e99ca608e9d /test/transform/resource
parent98d8a9f63b3183005174abb7691a1692347b9a2e (diff)
downloadlombok-a94243e06202a274a9499d1c0e79aeccb1aef5cd.tar.gz
lombok-a94243e06202a274a9499d1c0e79aeccb1aef5cd.tar.bz2
lombok-a94243e06202a274a9499d1c0e79aeccb1aef5cd.zip
Added lombok.Lombok.preventNullAnalysis to the null test in @Cleanup to suppress
warnings about variables that cannot be null
Diffstat (limited to 'test/transform/resource')
-rw-r--r--test/transform/resource/after-delombok/CleanupName.java4
-rw-r--r--test/transform/resource/after-delombok/CleanupPlain.java4
-rw-r--r--test/transform/resource/after-ecj/CleanupName.java4
-rw-r--r--test/transform/resource/after-ecj/CleanupPlain.java4
4 files changed, 8 insertions, 8 deletions
diff --git a/test/transform/resource/after-delombok/CleanupName.java b/test/transform/resource/after-delombok/CleanupName.java
index 0201008e..37a8d117 100644
--- a/test/transform/resource/after-delombok/CleanupName.java
+++ b/test/transform/resource/after-delombok/CleanupName.java
@@ -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();
}
}
diff --git a/test/transform/resource/after-delombok/CleanupPlain.java b/test/transform/resource/after-delombok/CleanupPlain.java
index 1a19442f..67c82f60 100644
--- a/test/transform/resource/after-delombok/CleanupPlain.java
+++ b/test/transform/resource/after-delombok/CleanupPlain.java
@@ -9,12 +9,12 @@ class CleanupPlain {
out.flush();
}
} finally {
- if (out != null) {
+ if (lombok.Lombok.preventNullAnalysis(out) != null) {
out.close();
}
}
} finally {
- if (in != null) {
+ if (lombok.Lombok.preventNullAnalysis(in) != null) {
in.close();
}
}
diff --git a/test/transform/resource/after-ecj/CleanupName.java b/test/transform/resource/after-ecj/CleanupName.java
index 4011721b..8948e91d 100644
--- a/test/transform/resource/after-ecj/CleanupName.java
+++ b/test/transform/resource/after-ecj/CleanupName.java
@@ -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();
}
diff --git a/test/transform/resource/after-ecj/CleanupPlain.java b/test/transform/resource/after-ecj/CleanupPlain.java
index fe8d7571..6eaa4377 100644
--- a/test/transform/resource/after-ecj/CleanupPlain.java
+++ b/test/transform/resource/after-ecj/CleanupPlain.java
@@ -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();
}