mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 04:50:58 +07:00
13 lines
366 B
Java
13 lines
366 B
Java
// "Replace iteration with bulk 'TestClass.test()' call" "true-preview"
|
|
package testpackage;
|
|
|
|
interface TestClass<T> {
|
|
<S extends T> Iterable<S> test(Iterable<S> entities);
|
|
<S extends T> S test(S entity);
|
|
}
|
|
|
|
public class Main {
|
|
public void test(TestClass<CharSequence> repo, Iterable<String> stringsToSave) {
|
|
stringsToSave.forEach(<caret>repo::test);
|
|
}
|
|
} |