< prev index next >

src/java.base/unix/classes/sun/nio/ch/DefaultAsynchronousChannelProvider.java

Print this page

        

*** 46,56 **** c = (Class<AsynchronousChannelProvider>)Class.forName(cn); } catch (ClassNotFoundException x) { throw new AssertionError(x); } try { ! return c.newInstance(); } catch (IllegalAccessException | InstantiationException x) { throw new AssertionError(x); } } --- 46,58 ---- c = (Class<AsynchronousChannelProvider>)Class.forName(cn); } catch (ClassNotFoundException x) { throw new AssertionError(x); } try { ! @SuppressWarnings("deprecation") ! AsynchronousChannelProvider result = c.newInstance(); ! return result; } catch (IllegalAccessException | InstantiationException x) { throw new AssertionError(x); } }
< prev index next >