8005473: Warnings compiling jaxp
authorjoehw
Thu, 27 Dec 2012 18:17:58 -0800
changeset 14942 0dbd45cfc14b
parent 14941 01e5737f9a1b
child 14943 c27887135b51
8005473: Warnings compiling jaxp Summary: clean up compiling warnings. Reviewed-by: weijun, chegar, forax
jaxp/src/com/sun/org/apache/xalan/internal/xslt/EnvironmentCheck.java
jaxp/src/javax/xml/transform/FactoryFinder.java
jaxp/src/javax/xml/validation/SchemaFactoryFinder.java
jaxp/src/javax/xml/xpath/XPathFactoryFinder.java
--- 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) {