[M C RpC] Repeated conditional tests [RpC_REPEATED_CONDITIONAL_TEST]
The code contains a conditional test is performed twice, one right after the
other (e.g., x == 0 || x == 0). Perhaps the second occurrence is
intended to be something else (e.g., x == 0 || y == 0).
这个不解释,一看代码就知道:
public void test{
String str = "123";
if(str!=null){
if(str!=null){ //重复了
System.out.println("123");
}
}
}
String str = "123";
if(str!=null){
if(str!=null){ //重复了
System.out.println("123");
}
}
}