< prev index next >
src/java.base/unix/classes/sun/nio/ch/DefaultAsynchronousChannelProvider.java
Print this page
@@ -46,11 +46,13 @@
c = (Class<AsynchronousChannelProvider>)Class.forName(cn);
} catch (ClassNotFoundException x) {
throw new AssertionError(x);
}
try {
- return c.newInstance();
+ @SuppressWarnings("deprecation")
+ AsynchronousChannelProvider result = c.newInstance();
+ return result;
} catch (IllegalAccessException | InstantiationException x) {
throw new AssertionError(x);
}
}
< prev index next >