mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
IDEA-219189 "Split into 2 if's" generates redundant 'else if' clause
GitOrigin-RevId: 0218fd86bb09eea638be20dd96bd248ce498a399
This commit is contained in:
committed by
intellij-monorepo-bot
parent
fb0f9bb364
commit
1c84c9bef2
+10
@@ -0,0 +1,10 @@
|
||||
public class SplitCondition {
|
||||
private static void appendString(String phrase) {
|
||||
if (phrase != null &<caret>& phrase.contains("abc")) {
|
||||
System.out.println("abc!");
|
||||
}
|
||||
else if (phrase == null) {
|
||||
System.out.println("null");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user