Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/useBulkOperation/afterGenericMethodArray.java
Bas Leijdekkers ea834397dc show method calls with () in "Replace with bulk method call" inspection messages
GitOrigin-RevId: cc40c33ea4729b0faaecefe3e67287ece06090bd
2022-01-31 10:13:13 +00:00

15 lines
372 B
Java

// "Replace iteration with bulk 'TestClass.test()' call" "true"
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));
}
}