diff rep/channel/SelectorSimulator.java @ 203:4c0a94836357 simullator-nio-both-worked

*** empty log message ***
author kono
date Sat, 30 Aug 2008 11:21:43 +0900
parents 8d7c74610b05
children 0607cc699ba3
line wrap: on
line diff
--- a/rep/channel/SelectorSimulator.java	Sat Aug 30 11:15:31 2008 +0900
+++ b/rep/channel/SelectorSimulator.java	Sat Aug 30 11:21:43 2008 +0900
@@ -18,7 +18,6 @@
 		keyList = new HashSet<SelectionKey>();
 	}
 
-	//@SuppressWarnings("unchecked")
 	public int select() throws IOException {
 		selectedKeys = new HashSet<SelectionKey>();
 		
@@ -26,7 +25,7 @@
 
 			while(selectedKeys.isEmpty()){
 				for(SelectionKey key : keyList){
-					if(((SelectionKeySimulator) key).isAble())
+					if(((SelectionKeySimulator<?>) key).isAble())
 						selectedKeys.add(key);
 				}
 
@@ -62,14 +61,6 @@
 			return newKeys;//(Set<REPSelectionKey<P>>)newKeys;
 	}
 	
-	/*
-	public <T> SelectionKeySimulator register(ChannelSimulator<T> cs, int opt, Object handler){
-		SelectionKeySimulator key = new SelectionKeySimulator(cs, opt, this);
-		key.attach(handler);
-		keyList.add(key);
-		return key;
-	}*/
-	
 	public <T> SelectionKey getKey(ChannelSimulator<T> channel){
 		for(SelectionKey key : keyList){
 			if(key.channel() == channel)