blob: 228fe5c10117d2755f37d970d1900852196e7c89 (
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
|
package com.siyeh.igtest.bugs.castConflictingInstanceof.andAnd;
class Test {
public void test(Object o)
{
if (!(o instanceof Number) ||
((Number)o).intValue() == 0 ||
!(o instanceof Integer) ||
((Integer) o).byteValue() == 9) {
System.out.println();
}
if (!(o instanceof Number) ||
((Number)o).intValue() == 0 ||
!(o instanceof Integer) ||
!(o instanceof Number) ||
((Integer) o).byteValue() == 9) {
System.out.println();
}
if (!(o instanceof Integer) ||
((Number)o).intValue() == 0 ||
!(o instanceof Number) ||
((Integer) o).byteValue() == 9) {
System.out.println();
}
}
}
|