src/share/classes/java/nio/channels/FileLock.java

Print this page

        

*** 112,122 **** * * * @author Mark Reinhold * @author JSR-51 Expert Group * @since 1.4 - * @updated 1.7 */ public abstract class FileLock { private final Channel channel; --- 112,121 ----
*** 159,169 **** this.size = size; this.shared = shared; } /** ! * {@note new} Initializes a new instance of this class. * * @param channel * The channel upon whose file this lock is held * * @param position --- 158,168 ---- this.size = size; this.shared = shared; } /** ! * Initializes a new instance of this class. * * @param channel * The channel upon whose file this lock is held * * @param position
*** 197,207 **** this.size = size; this.shared = shared; } /** - * {@note revised} * Returns the file channel upon whose file this lock was acquired. * * <p> This method has been superseded by the {@link #acquiredBy acquiredBy} * method. * --- 196,205 ----
*** 211,221 **** public final FileChannel channel() { return (channel instanceof FileChannel) ? (FileChannel)channel : null; } /** - * {@note new} * Returns the channel upon whose file this lock was acquired. * * @return The channel upon whose file this lock was acquired. * * @since 1.7 --- 209,218 ----