< prev index next >

test/java/nio/channels/spi/SelectorProvider/inheritedChannel/Util.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 23,36 **** /* * A collection of utility methods used by the SelectorProvider.inheritedChannel * unit tests. */ ! import java.net.*; ! import java.io.*; ! import java.nio.channels.*; ! import java.lang.reflect.*; public class Util { private static Object get(String className, String fieldName, Object o) throws Exception { Class cl = Class.forName(className); --- 23,38 ---- /* * A collection of utility methods used by the SelectorProvider.inheritedChannel * unit tests. */ ! import java.io.File; ! import java.io.FileDescriptor; ! import java.lang.reflect.Field; ! import java.nio.channels.DatagramChannel; ! import java.nio.channels.ServerSocketChannel; ! import java.nio.channels.SocketChannel; public class Util { private static Object get(String className, String fieldName, Object o) throws Exception { Class cl = Class.forName(className);
< prev index next >