Remove ClassLoaderIsolationUtil
Minimize usages of jet.* in Java code: this will help in migration of jet.* to package kotlin. Since tests will work with fq names instead of Class<?> instances from now on, ClassLoaderIsolationUtil is useless now (except for one unrelated method, which was moved to CodegenTestUtil)
This commit is contained in:
@@ -138,4 +138,14 @@ public class CodegenTestUtil {
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static Object getAnnotationAttribute(@NotNull Object annotation, @NotNull String name) {
|
||||
try {
|
||||
return annotation.getClass().getMethod(name).invoke(annotation);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw UtilsPackage.rethrow(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user