mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Java8CollectionsApiInspection is split into 4 separate inspections
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// "Replace the loop with Collection.removeIf" "true"
|
||||
import java.util.*;
|
||||
|
||||
public class Main {
|
||||
public void removeEmpty(List<String> list) throws Exception {
|
||||
// remove empty
|
||||
list.removeIf(String::isEmpty);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user