Author: ron.sigal(a)jboss.com
Date: 2009-08-29 20:43:11 -0400 (Sat, 29 Aug 2009)
New Revision: 5404
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/coyote/CoyoteInvoker.java
Log:
JBREM-1145: Fixed initialization of useRemotingContentType to not print warning for null
value.
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/coyote/CoyoteInvoker.java
===================================================================
---
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/coyote/CoyoteInvoker.java 2009-08-30
00:41:05 UTC (rev 5403)
+++
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/coyote/CoyoteInvoker.java 2009-08-30
00:43:11 UTC (rev 5404)
@@ -217,11 +217,11 @@
protocolHandlers.add(protocolHandler);
value = config.get(HTTPMetadataConstants.USE_REMOTING_CONTENT_TYPE);
- if (value != null && value instanceof String)
+ if (value instanceof String)
{
useRemotingContentType = (String) value;
}
- else
+ else if (value != null)
{
log.warn(HTTPMetadataConstants.USE_REMOTING_CONTENT_TYPE + " value
should be a String: " + value);
}
Show replies by date