tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r1235257 - /tuscany/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/xml/AXIOMXMLHelper.java
Date Tue, 24 Jan 2012 14:10:55 GMT
Author: antelder
Date: Tue Jan 24 14:10:54 2012
New Revision: 1235257

URL: http://svn.apache.org/viewvc?rev=1235257&view=rev
Log:
Add parentheses to force correct evaluation

Modified:
    tuscany/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/xml/AXIOMXMLHelper.java

Modified: tuscany/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/xml/AXIOMXMLHelper.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/xml/AXIOMXMLHelper.java?rev=1235257&r1=1235256&r2=1235257&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/xml/AXIOMXMLHelper.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/xml/AXIOMXMLHelper.java
Tue Jan 24 14:10:54 2012
@@ -78,7 +78,7 @@ public class AXIOMXMLHelper implements X
     @Override
     public OMElement createWrapper(QName qname) {
         // The OMElement2JAXB transformer wants the opName to be capitalized
-        String opName = Character.toUpperCase(qname.getLocalPart().charAt(0)) + qname.getLocalPart().length()
> 1 ? qname.getLocalPart().substring(1) : "";
+        String opName = Character.toUpperCase(qname.getLocalPart().charAt(0)) + (qname.getLocalPart().length()
> 1 ? qname.getLocalPart().substring(1) : "");
         OMElement om = factory.createOMElement(qname);
         OMNamespace defaultNS = om.declareDefaultNamespace(qname.getNamespaceURI());
         return factory.createOMElement(opName, defaultNS);



Mime
View raw message