mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
6765045: Remove rawtypes warnings from langtools
Removed all occurrences of rawtypes warnings from langtools Reviewed-by: jjg, bpatel
This commit is contained in:
parent
a23159ffac
commit
795b53a014
60 changed files with 229 additions and 231 deletions
|
@ -74,7 +74,7 @@ public abstract class Trees {
|
|||
ClassLoader cl = arg.getClass().getClassLoader();
|
||||
Class<?> c = Class.forName("com.sun.tools.javac.api.JavacTrees", false, cl);
|
||||
argType = Class.forName(argType.getName(), false, cl);
|
||||
Method m = c.getMethod("instance", new Class[] { argType });
|
||||
Method m = c.getMethod("instance", new Class<?>[] { argType });
|
||||
return (Trees) m.invoke(null, new Object[] { arg });
|
||||
} catch (Throwable e) {
|
||||
throw new AssertionError(e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue