mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-07 02:36:56 +07:00
IDEA-163875 Inspection "Replace inefficient Stream API call chains ending with count()" should respect alignment settings
13 lines
327 B
Java
13 lines
327 B
Java
// "Replace the loop with Collection.removeIf" "true"
|
|
import java.util.*;
|
|
|
|
public class Main {
|
|
public void removeEmpty(List<String> list) throws Exception {
|
|
/*here's list*/
|
|
// iterate over list
|
|
// if it's empty
|
|
/* remove! */
|
|
/*empty?*/
|
|
list.removeIf(String::isEmpty);
|
|
}
|
|
} |