Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
inspection
/
java8CollectionRemoveIf
/
afterForEachRemoveSimple.java
blob: 534cc9336f48a41a4406021e42c7bfa6bb8b5c70 [
file
]
// "Replace the loop with Collection.removeIf" "true"
import
java
.
util
.*;
public
class
Main
{
public
void
removeEmpty
(
List
<
String
>
list
)
throws
Exception
{
// Presumably CopyOnWriteArrayList
list
.
removeIf
(
String
::
isEmpty
);
}
}