Fix warnings in JVM codegen tests
Add generics where needed, add nullability annotations, etc. Also delete some testcases from ArrayGenTest which will never be supported
This commit is contained in:
@@ -80,14 +80,14 @@ public class CodegenTestUtil {
|
||||
assertTrue(caught);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@NotNull
|
||||
public static Method findDeclaredMethodByName(@NotNull Class<?> aClass, @NotNull String name) {
|
||||
for (Method method : aClass.getDeclaredMethods()) {
|
||||
if (method.getName().equals(name)) {
|
||||
return method;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
throw new AssertionError("Method " + name + " is not found in class " + aClass);
|
||||
}
|
||||
|
||||
public static void assertIsCurrentTime(long returnValue) {
|
||||
|
||||
Reference in New Issue
Block a user