aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/ValLessSimple.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-delombok/ValLessSimple.java')
-rw-r--r--test/transform/resource/after-delombok/ValLessSimple.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ValLessSimple.java b/test/transform/resource/after-delombok/ValLessSimple.java
index 678b419e..d06c66ec 100644
--- a/test/transform/resource/after-delombok/ValLessSimple.java
+++ b/test/transform/resource/after-delombok/ValLessSimple.java
@@ -22,5 +22,12 @@ public class ValLessSimple {
final java.lang.String foo = fieldV + methodV;
}
}
+ private void testValInCatchBlock() {
+ try {
+ final int x = 1 / 0;
+ } catch (ArithmeticException e) {
+ final int y = 0;
+ }
+ }
private String field = "field";
} \ No newline at end of file