aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/ValSimple.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before/ValSimple.java')
-rw-r--r--test/transform/resource/before/ValSimple.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/transform/resource/before/ValSimple.java b/test/transform/resource/before/ValSimple.java
new file mode 100644
index 00000000..15508bbc
--- /dev/null
+++ b/test/transform/resource/before/ValSimple.java
@@ -0,0 +1,26 @@
+public class ValSimple {
+ private String field = "field";
+ private short field2 = 5;
+
+ private String method() {
+ return "method";
+ }
+
+ private double method2() {
+ return 2.0;
+ }
+
+ private void testVal(String param) {
+ val fieldV = field;
+ val methodV = method();
+ val paramV = param;
+
+ val valOfVal = fieldV;
+ val operatorV = fieldV + valOfVal;
+
+ val fieldW = field2;
+ val methodW = method2();
+ byte localVar = 3;
+ val operatorW = fieldW + localVar;
+ }
+}