tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkoli...@apache.org
Subject svn commit: r1417003 - /tomcat/trunk/java/org/apache/tomcat/websocket/PojoMethodMapping.java
Date Tue, 04 Dec 2012 15:51:10 GMT
Author: kkolinko
Date: Tue Dec  4 15:51:09 2012
New Revision: 1417003

URL: http://svn.apache.org/viewvc?rev=1417003&view=rev
Log:
Review of r1416258
'&&' has higher priority than '||', so the brackets are needed.

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

Modified: tomcat/trunk/java/org/apache/tomcat/websocket/PojoMethodMapping.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/websocket/PojoMethodMapping.java?rev=1417003&r1=1417002&r2=1417003&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/websocket/PojoMethodMapping.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/websocket/PojoMethodMapping.java Tue Dec  4 15:51:09
2012
@@ -184,7 +184,7 @@ public class PojoMethodMapping {
         } else if (type.equals(byte.class) || type.equals(Byte.class)) {
             return Byte.valueOf(value);
         } else if (value.length() == 1 &&
-                type.equals(char.class) || type.equals(Character.class)) {
+                (type.equals(char.class) || type.equals(Character.class))) {
             return Character.valueOf(value.charAt(0));
         } else if (type.equals(double.class) || type.equals(Double.class)) {
             return Double.valueOf(value);



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


Mime
View raw message