File: TestCaseIf.java

package info (click to toggle)
libnb-javaparser-java 9%2B2018-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 65,320 kB
  • sloc: java: 440,096; xml: 6,359; sh: 865; makefile: 314
file content (75 lines) | stat: -rw-r--r-- 1,940 bytes parent folder | download | duplicates (18)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/* /nodynamiccopyright/ */

public class TestCaseIf {

    @AliveRange(varName="o", bytecodeStart=9, bytecodeLength=5)
    @AliveRange(varName="o", bytecodeStart=17, bytecodeLength=1)
    void m0(String[] args) {
        Object o;
        if (args[0] != null) {
            o = "";
            o.hashCode();
        }
        o = "";
    }

    @AliveRange(varName="o", bytecodeStart=10, bytecodeLength=5)
    @AliveRange(varName="o", bytecodeStart=18, bytecodeLength=1)
    void m1() {
        Object o;
        int i = 5;
        if (i == 5) {
            o = "";
            o.hashCode();
        }
        o = "";
    }

    @AliveRange(varName="o", bytecodeStart=10, bytecodeLength=5)
    @AliveRange(varName="o", bytecodeStart=18, bytecodeLength=1)
    void m2() {
        Object o;
        int i = 5;
        if (!(i == 5)) {
            o = "";
            o.hashCode();
        }
        o = "";
    }

    @AliveRange(varName="o", bytecodeStart=15, bytecodeLength=5)
    @AliveRange(varName="o", bytecodeStart=23, bytecodeLength=1)
    void m3(String[] args) {
        Object o;
        if (args[0] != null && args[1] != null) {
            o = "";
            o.hashCode();
        }
        o = "";
    }

    @AliveRange(varName="o", bytecodeStart=15, bytecodeLength=5)
    @AliveRange(varName="o", bytecodeStart=23, bytecodeLength=1)
    void m4(String[] args) {
        Object o;
        if (args[0] != null || args[1] != null) {
            o = "";
            o.hashCode();
        }
        o = "";
    }

    @AliveRange(varName="finalLocal", bytecodeStart=11, bytecodeLength=6)
    @AliveRange(varName="used", bytecodeStart=13, bytecodeLength=4)
    void m5(Object o) {
        if (o != null) {
            Object notUsed;
            Object used;
            if (o != null) {
                final Object finalLocal = null;
                used = null;
                if (o == null) {}
            }
        }
    }
}