mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 19:21:16 +07:00
9 lines
281 B
Java
9 lines
281 B
Java
// "Extract variable 'trimmed' to 'stream().map' operation" "true"
|
|
import java.util.Collection;
|
|
|
|
public class StreamExtract {
|
|
void hasNonEmpty(Collection<String> list) {
|
|
list.stream().map(String::trim).forEach(trimmed -> System.out.println(trimmed + ":" + trimmed));
|
|
}
|
|
}
|