< prev index next >
src/java.sql.rowset/share/classes/javax/sql/rowset/RowSetProvider.java
Print this page
@@ -134,12 +134,13 @@
if (factoryClassName.equals(ROWSET_FACTORY_IMPL)) {
return defaultRowSetFactory();
}
// getFactoryClass takes care of adding the read edge if
// necessary
- Class<?> c = getFactoryClass(factoryClassName, null, false);
- factory = (RowSetFactory) c.newInstance();
+ @SuppressWarnings("deprecation")
+ Object o = getFactoryClass(factoryClassName, null, false).newInstance();
+ factory = (RowSetFactory) o;
}
} catch (Exception e) {
throw new SQLException( "RowSetFactory: " + factoryClassName +
" could not be instantiated: ", e);
}
@@ -200,10 +201,11 @@
try {
// getFactoryClass takes care of adding the read edge if
// necessary
Class<?> providerClass = getFactoryClass(factoryClassName, cl, false);
+ @SuppressWarnings("deprecation")
RowSetFactory instance = (RowSetFactory) providerClass.newInstance();
if (debug) {
trace("Created new instance of " + providerClass +
" using ClassLoader: " + cl);
}
< prev index next >