8005473: Warnings compiling jaxp
Summary: clean up compiling warnings.
Reviewed-by: weijun, chegar, forax
--- a/jaxp/src/com/sun/org/apache/xalan/internal/xslt/EnvironmentCheck.java Tue Dec 18 21:11:43 2012 -0800
+++ b/jaxp/src/com/sun/org/apache/xalan/internal/xslt/EnvironmentCheck.java Thu Dec 27 18:17:58 2012 -0800
@@ -1005,7 +1005,7 @@
{
Class clazz = ObjectFactory.findProviderClass(DOM_CLASS, true);
- Method method = clazz.getMethod(DOM_LEVEL3_METHOD, null);
+ Method method = clazz.getMethod(DOM_LEVEL3_METHOD, (Class<?>[])null);
// If we succeeded, we have loaded interfaces from a
// level 3 DOM somewhere
--- a/jaxp/src/javax/xml/transform/FactoryFinder.java Tue Dec 18 21:11:43 2012 -0800
+++ b/jaxp/src/javax/xml/transform/FactoryFinder.java Thu Dec 27 18:17:58 2012 -0800
@@ -210,7 +210,7 @@
providerClass.getDeclaredMethod(
"newTransformerFactoryNoServiceLoader"
);
- return creationMethod.invoke(null, null);
+ return creationMethod.invoke(null, (Object[])null);
} catch (NoSuchMethodException exc) {
return null;
} catch (Exception exc) {
--- a/jaxp/src/javax/xml/validation/SchemaFactoryFinder.java Tue Dec 18 21:11:43 2012 -0800
+++ b/jaxp/src/javax/xml/validation/SchemaFactoryFinder.java Thu Dec 27 18:17:58 2012 -0800
@@ -357,7 +357,7 @@
providerClass.getDeclaredMethod(
"newXMLSchemaFactoryNoServiceLoader"
);
- return creationMethod.invoke(null, null);
+ return creationMethod.invoke(null, (Object[])null);
} catch (NoSuchMethodException exc) {
return null;
} catch (Exception exc) {
--- a/jaxp/src/javax/xml/xpath/XPathFactoryFinder.java Tue Dec 18 21:11:43 2012 -0800
+++ b/jaxp/src/javax/xml/xpath/XPathFactoryFinder.java Thu Dec 27 18:17:58 2012 -0800
@@ -333,7 +333,7 @@
providerClass.getDeclaredMethod(
"newXPathFactoryNoServiceLoader"
);
- return creationMethod.invoke(null, null);
+ return creationMethod.invoke(null, (Object[])null);
} catch (NoSuchMethodException exc) {
return null;
} catch (Exception exc) {