summaryrefslogtreecommitdiffstats
path: root/tests/new/binaryWarnings/src/app/Main.java
blob: a118555d40a67a22988778da4eaa7662f0c10c94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package app;
// WARNING: do not change lineation without changing test specification!!
public class Main {

    static String staticString = "hello";
    
    String s = "me";
    
    public static void main(String[] args) {

        String temp = staticString;        // 12

        staticString = temp + " world!";   // 14

        Main main = new Main();            // 16

        for (int i = 0; i < args.length; i++) {
            main.go(args[i]);              // 19
        }
    }

    Main() {                // 23
    }

    void go(String s) {  String t = "..".substring(0);   // 26
        try {

            String temp = this.s;  // 29

            this.s = temp + ", " + s;  // 31

        } catch (RuntimeException e) {   String u = "..".substring(0);  // 33
            
            stop();                      // 35 

        }
    }

    void stop() {                        // 40

        new Main();                      // 42

    }
}


class C {

    C() {                               // 50

    }

}