Suppress varargs call warning emitted from Java 5.0 compiler.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226235 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
cdcdeab0ae
commit
6b0f74afed
3 files changed
+9
-9
No files matched your search
+2
-2
@@ -60,14 +60,14 @@ class NewInstance {
|
||||
Method m = null;
|
||||
|
||||
try {
|
||||
m = Thread.class.getMethod("getContextClassLoader", null);
|
||||
m = Thread.class.getMethod("getContextClassLoader", (Class[]) null);
|
||||
} catch (NoSuchMethodException e) {
|
||||
// Assume that we are running JDK 1.1, use the current ClassLoader
|
||||
return NewInstance.class.getClassLoader();
|
||||
}
|
||||
|
||||
try {
|
||||
return (ClassLoader) m.invoke(Thread.currentThread(), null);
|
||||
return (ClassLoader) m.invoke(Thread.currentThread(), (Object[]) null);
|
||||
} catch (IllegalAccessException e) {
|
||||
// assert(false)
|
||||
throw new UnknownError(e.getMessage());
|
||||
|
||||
Reference in new issue
Block a user