mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
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:
+1
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user