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); 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

View file

@ -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) {

View file

@ -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) {

View file

@ -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) {