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:
parent
cdcdeab0ae
commit
6b0f74afed
@ -314,7 +314,7 @@ public class TransformerException extends Exception {
|
||||
|
||||
boolean isJdk14OrHigher = false;
|
||||
try {
|
||||
Throwable.class.getMethod("getCause",null);
|
||||
Throwable.class.getMethod("getCause",(Class[]) null);
|
||||
isJdk14OrHigher = true;
|
||||
} catch (NoSuchMethodException nsme) {
|
||||
// do nothing
|
||||
@ -348,12 +348,12 @@ public class TransformerException extends Exception {
|
||||
try {
|
||||
Method meth =
|
||||
((Object) exception).getClass().getMethod("getException",
|
||||
null);
|
||||
(Class[]) null);
|
||||
|
||||
if (null != meth) {
|
||||
Throwable prev = exception;
|
||||
|
||||
exception = (Throwable) meth.invoke(exception, null);
|
||||
exception = (Throwable) meth.invoke(exception, (Object[]) null);
|
||||
|
||||
if (prev == exception) {
|
||||
break;
|
||||
|
||||
@ -164,10 +164,10 @@ public class StreamResult implements Result {
|
||||
try {
|
||||
// use reflection to call f.toURI().toString().
|
||||
// Avoid compile time dependency on J2SE 1.4.
|
||||
Method toURIMethod = f.getClass().getMethod("toURI", null);
|
||||
Object uri = toURIMethod.invoke(f, null);
|
||||
Method toStringMethod = uri.getClass().getMethod("toString", null);
|
||||
this.systemId = (String)toStringMethod.invoke(uri, null);
|
||||
Method toURIMethod = f.getClass().getMethod("toURI", (Class[]) null);
|
||||
Object uri = toURIMethod.invoke(f, (Object[]) null);
|
||||
Method toStringMethod = uri.getClass().getMethod("toString", (Class[]) null);
|
||||
this.systemId = (String)toStringMethod.invoke(uri, (Object[]) null);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
|
||||
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user