1 package com
.ibm
.wala
.stringAnalysis
.java
.test
.example
;
3 public class SimpleTest
{
16 public static void main(String
[] args
) {
17 SimpleTest test
= new SimpleTest();
18 SimpleTest test2
= new SimpleTest();
20 // simple concatination
23 String r1
= test
.foo(s1
, s2
);
28 r2
= test
.foo("a", s1
);
30 r2
= test
.foo("b", s2
);
36 for (int i
= 0; i
< 10; i
++) {
42 while (r4
.length() < 20) {
47 String r5
= test
.bar(5, s1
); // array
50 String
[] r10
= { "ARY", s1
, s2
};
53 // constructor & property
54 String rProp
= test
.name
;
57 String rPropNick
= test
.nick
;
64 private String
foo(String s1
, String s2
) {
68 private String
bar(int n
, String s
) {
72 return "a" + bar(n
- 1, s
) + "b";
76 String rPropAddr
= this.addr
;