8319153: Fix: Class is a raw type in ProcessTools

Backport-of: 1c2ea1d27b
This commit is contained in:
Goetz Lindenmaier
2024-04-04 20:55:16 +00:00
committed by Vitaly Provodin
parent 44458e4210
commit 3bb65dd8fd

View File

@@ -920,7 +920,7 @@ public final class ProcessTools {
String className = args[1];
String[] classArgs = new String[args.length - 2];
System.arraycopy(args, 2, classArgs, 0, args.length - 2);
Class c = Class.forName(className);
Class<?> c = Class.forName(className);
Method mainMethod = c.getMethod("main", new Class[] { String[].class });
mainMethod.setAccessible(true);