blob: aad58b54108e96145e1f16fb1690c5edf38b0646 (
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
|
package com.siyeh.igtest.bugs;
public class DuplicateCondition {
public void foo()
{
if(bar()||bar())
{
System.out.println("1");
}else if(bar()|| true)
{
System.out.println("2");
}
}
public boolean bar()
{
return true;
}
void incompleteCode(String s) {
if (s.contains(A)) {
} else if (s.contains(B)) {
}
}
}
|