IDEA-163874 "Replace inefficient Stream API call chains ending with count" removes comments

IDEA-163875 Inspection "Replace inefficient Stream API call chains ending with count()" should respect alignment settings
This commit is contained in:
Tagir Valeev
2016-11-22 12:14:21 +07:00
parent 7f8d10752e
commit ec864dc55a
23 changed files with 281 additions and 90 deletions
@@ -5,7 +5,7 @@ import java.util.List;
public class Main {
public void testIterator(List<List<String>> data, boolean b) {
for(Ite<caret>rator<List<String>> iter = data.iterator(); iter.hasNext();) {
if(iter.next().isEmpty() && b) {
if(iter.next().isEmpty() && /* also check the flag */ b) {
iter.remove();
}
}