mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 20:33:31 +07:00
GitOrigin-RevId: 4d6a5487576dbbc4aca9c89b067eec8218aff686
15 lines
394 B
Java
15 lines
394 B
Java
// "Replace iteration with bulk 'TestClass.test()' call" "true-preview"
|
|
package testpackage;
|
|
|
|
import java.util.*;
|
|
|
|
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, String[] stringsToSave) {
|
|
Arrays.stream(stringsToSave).forEach(<caret>repo::test);
|
|
}
|
|
} |