Fix raw types in java file (#8782)

This commit is contained in:
kenji yoshida 2026-02-23 04:32:52 +09:00 committed by GitHub
parent c1ada47c29
commit 17ca2b3931
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 4 deletions

View File

@ -19,11 +19,12 @@ import xsbti.compile.ConsoleInterface1;
public final class ForkConsoleMain {
public void run(long id, ConsoleInfo info) throws Exception {
try {
Class cls = ConsoleInterface1.class;
Iterator iter = ServiceLoader.load(cls, ForkConsoleMain.class.getClassLoader()).iterator();
Class<ConsoleInterface1> cls = ConsoleInterface1.class;
Iterator<ConsoleInterface1> iter =
ServiceLoader.load(cls, ForkConsoleMain.class.getClassLoader()).iterator();
List<ConsoleInterface1> list = new ArrayList<>();
while (iter.hasNext()) {
list.add((ConsoleInterface1) iter.next());
list.add(iter.next());
}
if (list.size() > 0) {
runInterface1(list.get(0), info);
@ -59,7 +60,7 @@ public final class ForkConsoleMain {
}
private void runOldInterface(ConsoleInfo info) throws Exception {
Class concrete = Class.forName("xsbt.ConsoleInterface");
Class<?> concrete = Class.forName("xsbt.ConsoleInterface");
Object instance = concrete.getDeclaredConstructor().newInstance();
Method m =
concrete.getMethod(