tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1448458 - /tomcat/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointBase.java
Date Wed, 20 Feb 2013 23:01:24 GMT
Author: markt
Date: Wed Feb 20 23:01:23 2013
New Revision: 1448458

URL: http://svn.apache.org/r1448458
Log:
Re-reading the spec, this is not required.

Modified:
    tomcat/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointBase.java

Modified: tomcat/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointBase.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointBase.java?rev=1448458&r1=1448457&r2=1448458&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointBase.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointBase.java Wed Feb 20 23:01:23
2013
@@ -496,13 +496,6 @@ public abstract class WsRemoteEndpointBa
                 return entry.getEncoder();
             }
         }
-
-        if (obj instanceof Byte || obj instanceof Short ||
-                obj instanceof Integer || obj instanceof Long ||
-                obj instanceof Float || obj instanceof Double ||
-                obj instanceof Character || obj instanceof Boolean) {
-            return new ToStringEncoder();
-        }
         return null;
     }
 
@@ -512,15 +505,6 @@ public abstract class WsRemoteEndpointBa
     protected abstract void close();
 
 
-    private static class ToStringEncoder implements Encoder.Text<Object> {
-
-        @Override
-        public String encode(Object object) throws EncodeException {
-            return object.toString();
-        }
-    }
-
-
     private static void writeHeader(ByteBuffer headerBuffer, byte opCode,
             ByteBuffer payload, boolean first, boolean last, boolean masked,
             byte[] mask) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message