summaryrefslogtreecommitdiffstats
path: root/xml
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2010-02-01 10:40:34 -0800
committerElliott Hughes <enh@google.com>2010-02-01 10:40:34 -0800
commit52c57a8e64069eb783f9e55cad32a244073d655c (patch)
tree7e1ea7d7b06c8172c5ffefaabc2392a2442d42ea /xml
parentddc35402999d9975397b3f0923fb4b1026a2e5c9 (diff)
downloadlibcore-52c57a8e64069eb783f9e55cad32a244073d655c.zip
libcore-52c57a8e64069eb783f9e55cad32a244073d655c.tar.gz
libcore-52c57a8e64069eb783f9e55cad32a244073d655c.tar.bz2
Fix warnings in the new XML code.
Diffstat (limited to 'xml')
-rw-r--r--xml/src/main/java/org/apache/xml/dtm/DTMException.java6
-rw-r--r--xml/src/main/java/org/apache/xpath/XPathException.java2
2 files changed, 4 insertions, 4 deletions
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