mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 21:55:38 +07:00
GitOrigin-RevId: 6b6405ee4491ad1d58947547c40df6fb2d291ab7
9 lines
289 B
Java
9 lines
289 B
Java
// "Extract variable 'trimmed' to 'stream().map' operation" "true-preview"
|
|
import java.util.Collection;
|
|
|
|
public class StreamExtract {
|
|
void hasNonEmpty(Collection<String> list) {
|
|
list.stream().map(String::trim).forEach(trimmed -> System.out.println(trimmed + ":" + trimmed));
|
|
}
|
|
}
|