aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test1/LocalVars.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test1/LocalVars.java')
-rw-r--r--src/test/test1/LocalVars.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/test1/LocalVars.java b/src/test/test1/LocalVars.java
new file mode 100644
index 00000000..a3d14d7a
--- /dev/null
+++ b/src/test/test1/LocalVars.java
@@ -0,0 +1,18 @@
+package test1;
+
+public class LocalVars {
+ public int poi(String str) {
+ Object obj = str;
+ int hash = obj.hashCode();
+ return hash;
+ }
+
+ public int foo(int i) {
+ int j = 3;
+ if (i == 0) {
+ String s = "zero";
+ j += s.length();
+ }
+ return j + 3;
+ }
+}