diff rep/channel/SelectionKeySimulator.java @ 205:dfc2afab1325 simulator-nio-both-worked

*** empty log message ***
author kono
date Sat, 30 Aug 2008 11:42:52 +0900
parents 8d7c74610b05
children 3e0cd34d625d
line wrap: on
line diff
--- a/rep/channel/SelectionKeySimulator.java	Sat Aug 30 11:25:27 2008 +0900
+++ b/rep/channel/SelectionKeySimulator.java	Sat Aug 30 11:42:52 2008 +0900
@@ -4,7 +4,6 @@
 import java.nio.channels.SelectableChannel;
 import java.nio.channels.SelectionKey;
 import java.nio.channels.Selector;
-import java.nio.channels.ServerSocketChannel;
 
 public class SelectionKeySimulator<P> extends REPSelectionKey<P>{
 	
@@ -53,6 +52,7 @@
 		return channel;
 	}
 
+	@SuppressWarnings("unchecked")
 	public REPSocketChannel<P> accept(REPPack<P> pack) throws IOException {
 		assert(channel instanceof ServerChannelSimulator);
 		ServerChannelSimulator<P> scs = (ServerChannelSimulator<P>) channel;