diff rep/channel/REPSelectionKey.java @ 437:2c00fa39dd84

minor fix
author one
date Fri, 03 Sep 2010 10:22:39 +0900
parents c5be84d53c7f
children
line wrap: on
line diff
--- a/rep/channel/REPSelectionKey.java	Wed Sep 01 11:43:21 2010 +0900
+++ b/rep/channel/REPSelectionKey.java	Fri Sep 03 10:22:39 2010 +0900
@@ -76,7 +76,6 @@
 		return selector;
 	}
 
-	@SuppressWarnings("unchecked")
 	public REPSocketChannel<P> accept(REPPack<P> pack) throws IOException {
 		assert(!REPServerSocketChannel.isSimulation);
 		if (!key.isAcceptable()) throw new IOException();
@@ -85,7 +84,7 @@
 		SocketChannel ss = (SocketChannel)ssc.accept();
 		//System.err.println("Accept in SelectionKey "+ss);
 		if (ss==null) return null;
-		return new REPSocketChannel(ss, pack);
+		return new REPSocketChannel<P>(ss, pack);
 	}