From 7ff7e6abd8b17e9d9c7551e8d76503fb18325daa Mon Sep 17 00:00:00 2001 From: Ronald Veldema Date: Tue, 12 Mar 2002 11:36:21 +0000 Subject: * Removes dependencies on manta; javax.swing, gnu.java.nio and java.nio now compile with jikes; --- gnu/java/nio/SelectionKeyImpl.java | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'gnu/java/nio/SelectionKeyImpl.java') diff --git a/gnu/java/nio/SelectionKeyImpl.java b/gnu/java/nio/SelectionKeyImpl.java index a05791bb8..748dd3806 100644 --- a/gnu/java/nio/SelectionKeyImpl.java +++ b/gnu/java/nio/SelectionKeyImpl.java @@ -1,17 +1,17 @@ -package manta.runtime; +package gnu.java.nio; import java.nio.channels.*; import java.nio.channels.spi.*; -class SelectionKeyImpl extends AbstractSelectionKey +public class SelectionKeyImpl extends AbstractSelectionKey { int fd, ops; SelectorImpl impl; SelectableChannel ch; - SelectionKeyImpl(SelectableChannel ch, - SelectorImpl impl, - int fd) + public SelectionKeyImpl(SelectableChannel ch, + SelectorImpl impl, + int fd) { this.ch = ch; this.impl = impl; @@ -19,29 +19,29 @@ class SelectionKeyImpl extends AbstractSelectionKey } - SelectableChannel channel() + public SelectableChannel channel() { return ch; } - int readyOps() + public int readyOps() { return 0; } - int interestOps() + public int interestOps() { return ops; } - SelectionKey interestOps(int ops) + + public SelectionKey interestOps(int ops) { this.ops = ops; return this; } - - Selector selector() + public Selector selector() { return impl; } -- cgit v1.2.1