@@ -66,7 +66,7 @@ public void test_compiler() throws Throwable {
6666
6767 String text = "generated test " + new Date ();
6868 try {
69- final Class aClass =
69+ final Class <?> aClass =
7070 cc .loadFromJava (EG_FOO_BAR_TEE + 3 , "package eg;\n " +
7171 '\n' +
7272 "import eg.components.BarImpl;\n " +
@@ -112,7 +112,7 @@ public void test_compiler() throws Throwable {
112112 public void test_fromFile ()
113113 throws ClassNotFoundException , IOException , IllegalAccessException , InstantiationException ,
114114 NoSuchMethodException , InvocationTargetException , NoSuchFieldException {
115- Class clazz = CompilerUtils .loadFromResource ("eg.FooBarTee2" , "eg/FooBarTee2.jcf" );
115+ Class <?> clazz = CompilerUtils .loadFromResource ("eg.FooBarTee2" , "eg/FooBarTee2.jcf" );
116116 // turn off System.out
117117 PrintStream out = System .out ;
118118 try {
@@ -269,7 +269,7 @@ public void test_compilerErrorsDoNotBreakNextCompilations() throws Exception {
269269 }
270270
271271 // ensure next class can be compiled and used
272- Class testClass = CompilerUtils .CACHED_COMPILER .loadFromJava (
272+ Class <?> testClass = CompilerUtils .CACHED_COMPILER .loadFromJava (
273273 getClass ().getClassLoader (), "S" , "class S {" +
274274 "public static final String s = \" ok\" ;}" );
275275
@@ -292,11 +292,10 @@ public void testNewCompiler() throws Exception {
292292 ClassLoader classLoader = new ClassLoader () {
293293 };
294294 CachedCompiler cc = new CachedCompiler (null , null );
295- Class a = cc .loadFromJava (classLoader , "A" , "public class A { static int i = " + i + "; }" );
296- Class b = cc .loadFromJava (classLoader , "B" , "public class B implements net.openhft.compiler.MyIntSupplier { public int get() { return A.i; } }" );
295+ Class <?> a = cc .loadFromJava (classLoader , "A" , "public class A { static int i = " + i + "; }" );
296+ Class <?> b = cc .loadFromJava (classLoader , "B" , "public class B implements net.openhft.compiler.MyIntSupplier { public int get() { return A.i; } }" );
297297 MyIntSupplier bi = (MyIntSupplier ) b .getDeclaredConstructor ().newInstance ();
298298 assertEquals (i , bi .get ());
299299 }
300300 }
301301}
302-
0 commit comments