blob: 22a69f1c21a11dc0c0cf8b3a05d04532e0d9c724 (
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
|
public class Car {
@TestAnnotation
private int n;
private String s;
public Car(int n, String s) {
this.n = n;
this.s = s;
assert true : "not true";
}
public int getN() {
int i =4;
return n;
}
public String getS() {
return s;
}
@SuppressWarnings("deprecation")
public void simpleIf(@TestAnnotation String var){
@TestAnnotation
int varDecl = -1;
if( s.equals("toto") ){
n = 4;
} else {
n = 3;
}
assert true : "not true";
}
}
|