mina-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mhe...@apache.org
Subject svn commit: r593280 - /mina/trunk/core/src/main/java/org/apache/mina/filter/codec/demux/DemuxingProtocolCodecFactory.java
Date Thu, 08 Nov 2007 19:54:10 GMT
Author: mheath
Date: Thu Nov  8 11:54:10 2007
New Revision: 593280

URL: http://svn.apache.org/viewvc?rev=593280&view=rev
Log:
Rolled back experimental generics change that broke example.

Modified:
    mina/trunk/core/src/main/java/org/apache/mina/filter/codec/demux/DemuxingProtocolCodecFactory.java

Modified: mina/trunk/core/src/main/java/org/apache/mina/filter/codec/demux/DemuxingProtocolCodecFactory.java
URL: http://svn.apache.org/viewvc/mina/trunk/core/src/main/java/org/apache/mina/filter/codec/demux/DemuxingProtocolCodecFactory.java?rev=593280&r1=593279&r2=593280&view=diff
==============================================================================
--- mina/trunk/core/src/main/java/org/apache/mina/filter/codec/demux/DemuxingProtocolCodecFactory.java
(original)
+++ mina/trunk/core/src/main/java/org/apache/mina/filter/codec/demux/DemuxingProtocolCodecFactory.java
Thu Nov  8 11:54:10 2007
@@ -53,7 +53,7 @@
     }
     
     @SuppressWarnings("unchecked")
-    public <T> void addMessageEncoder(Class<T> messageType, Class<? extends
MessageEncoder<? super T>> encoderClass) {
+    public void addMessageEncoder(Class<?> messageType, Class<? extends MessageEncoder>
encoderClass) {
         this.encoder.addMessageEncoder(messageType, encoderClass);
     }
 
@@ -65,8 +65,9 @@
         this.encoder.addMessageEncoder(messageType, factory);
     }
     
-    public <T> void addMessageEncoder(Collection<Class<? extends T>> messageTypes,
Class<? extends MessageEncoder<? super T>> encoderClass) {
-    	for (Class<? extends T> messageType : messageTypes) {
+    @SuppressWarnings("unchecked")
+    public void addMessageEncoder(Collection<Class<?>> messageTypes, Class<?
extends MessageEncoder> encoderClass) {
+    	for (Class<?> messageType : messageTypes) {
     		this.encoder.addMessageEncoder(messageType, encoderClass);
     	}
     }



Mime
View raw message