8005473: Warnings compiling jaxp

Clean up compiling warnings.

Reviewed-by: weijun, chegar, forax
This commit is contained in:
Joe Wang 2012-12-27 18:17:58 -08:00
parent 9ee412031f
commit c04f299d28
4 changed files with 4 additions and 4 deletions

View File

@ -1005,7 +1005,7 @@ public class EnvironmentCheck
{
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

View File

@ -210,7 +210,7 @@ class FactoryFinder {
providerClass.getDeclaredMethod(
"newTransformerFactoryNoServiceLoader"
);
return creationMethod.invoke(null, null);
return creationMethod.invoke(null, (Object[])null);
} catch (NoSuchMethodException exc) {
return null;
} catch (Exception exc) {

View File

@ -357,7 +357,7 @@ class SchemaFactoryFinder {
providerClass.getDeclaredMethod(
"newXMLSchemaFactoryNoServiceLoader"
);
return creationMethod.invoke(null, null);
return creationMethod.invoke(null, (Object[])null);
} catch (NoSuchMethodException exc) {
return null;
} catch (Exception exc) {

View File

@ -333,7 +333,7 @@ class XPathFactoryFinder {
providerClass.getDeclaredMethod(
"newXPathFactoryNoServiceLoader"
);
return creationMethod.invoke(null, null);
return creationMethod.invoke(null, (Object[])null);
} catch (NoSuchMethodException exc) {
return null;
} catch (Exception exc) {