From 52c57a8e64069eb783f9e55cad32a244073d655c Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 1 Feb 2010 10:40:34 -0800 Subject: Fix warnings in the new XML code. --- xml/src/main/java/org/apache/xml/dtm/DTMException.java | 6 +++--- xml/src/main/java/org/apache/xpath/XPathException.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'xml') diff --git a/xml/src/main/java/org/apache/xml/dtm/DTMException.java b/xml/src/main/java/org/apache/xml/dtm/DTMException.java index ebb3024..030dc1f 100644 --- a/xml/src/main/java/org/apache/xml/dtm/DTMException.java +++ b/xml/src/main/java/org/apache/xml/dtm/DTMException.java @@ -323,7 +323,7 @@ public class DTMException extends RuntimeException { boolean isJdk14OrHigher = false; try { - Throwable.class.getMethod("getCause",null); + Throwable.class.getMethod("getCause", (Class) null); isJdk14OrHigher = true; } catch (NoSuchMethodException nsme) { // do nothing @@ -357,12 +357,12 @@ public class DTMException extends RuntimeException { 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, (Class) null); if (prev == exception) { break; diff --git a/xml/src/main/java/org/apache/xpath/XPathException.java b/xml/src/main/java/org/apache/xpath/XPathException.java index b5e682a..315a5d6 100644 --- a/xml/src/main/java/org/apache/xpath/XPathException.java +++ b/xml/src/main/java/org/apache/xpath/XPathException.java @@ -267,7 +267,7 @@ public class XPathException extends TransformerException boolean isJdk14OrHigher = false; try { - Throwable.class.getMethod("getCause",null); + Throwable.class.getMethod("getCause", (Class) null); isJdk14OrHigher = true; } catch (NoSuchMethodException nsme) { // do nothing -- cgit v1.1