mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
8005473: Warnings compiling jaxp
Clean up compiling warnings. Reviewed-by: weijun, chegar, forax
This commit is contained in:
parent
9ee412031f
commit
c04f299d28
4 changed files with 4 additions and 4 deletions
|
@ -1005,7 +1005,7 @@ public class EnvironmentCheck
|
||||||
{
|
{
|
||||||
Class clazz = ObjectFactory.findProviderClass(DOM_CLASS, true);
|
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
|
// If we succeeded, we have loaded interfaces from a
|
||||||
// level 3 DOM somewhere
|
// level 3 DOM somewhere
|
||||||
|
|
|
@ -210,7 +210,7 @@ class FactoryFinder {
|
||||||
providerClass.getDeclaredMethod(
|
providerClass.getDeclaredMethod(
|
||||||
"newTransformerFactoryNoServiceLoader"
|
"newTransformerFactoryNoServiceLoader"
|
||||||
);
|
);
|
||||||
return creationMethod.invoke(null, null);
|
return creationMethod.invoke(null, (Object[])null);
|
||||||
} catch (NoSuchMethodException exc) {
|
} catch (NoSuchMethodException exc) {
|
||||||
return null;
|
return null;
|
||||||
} catch (Exception exc) {
|
} catch (Exception exc) {
|
||||||
|
|
|
@ -357,7 +357,7 @@ class SchemaFactoryFinder {
|
||||||
providerClass.getDeclaredMethod(
|
providerClass.getDeclaredMethod(
|
||||||
"newXMLSchemaFactoryNoServiceLoader"
|
"newXMLSchemaFactoryNoServiceLoader"
|
||||||
);
|
);
|
||||||
return creationMethod.invoke(null, null);
|
return creationMethod.invoke(null, (Object[])null);
|
||||||
} catch (NoSuchMethodException exc) {
|
} catch (NoSuchMethodException exc) {
|
||||||
return null;
|
return null;
|
||||||
} catch (Exception exc) {
|
} catch (Exception exc) {
|
||||||
|
|
|
@ -333,7 +333,7 @@ class XPathFactoryFinder {
|
||||||
providerClass.getDeclaredMethod(
|
providerClass.getDeclaredMethod(
|
||||||
"newXPathFactoryNoServiceLoader"
|
"newXPathFactoryNoServiceLoader"
|
||||||
);
|
);
|
||||||
return creationMethod.invoke(null, null);
|
return creationMethod.invoke(null, (Object[])null);
|
||||||
} catch (NoSuchMethodException exc) {
|
} catch (NoSuchMethodException exc) {
|
||||||
return null;
|
return null;
|
||||||
} catch (Exception exc) {
|
} catch (Exception exc) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue