Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/useBulkOperation/afterGenericMethodArray.java
Tagir Valeev 49f4397ba0 [java-intentions] More preview tests
GitOrigin-RevId: 4d6a5487576dbbc4aca9c89b067eec8218aff686
2022-07-29 17:55:15 +00:00

15 lines
380 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) {
repo.test(Arrays.asList(stringsToSave));
}
}