8005473: Warnings compiling jaxp
Clean up compiling warnings. Reviewed-by: weijun, chegar, forax
This commit is contained in:
parent
9ee412031f
commit
c04f299d28
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user