Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/redundantCollectionOperation/afterContainsRemoveAndAnd.java
Rustam Vishnyakov 53d0972e83 Do not indent control structures parentheses
Fixes:
IDEA-98552 for() statement: Place ')' on new line → "incorrect" alignment
IDEA-175560 Right parenthesis (rparen) on new line is not indented properly
2018-04-25 18:10:02 +03:00

11 lines
256 B
Java

// "Remove the 'contains' check" "true"
import java.util.List;
class Test {
void test(List<String> list, String key) {
if(key !=/*nullcheck*/ null && !key./*check*/isEmpty() /*and*/ /*key*/ //line comment
) {
list.remove(key);
}
}
}