axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shiva Kumar Yemula (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-4741) Dead Code in ADBXMLStreamReaderImpl.java
Date Tue, 15 Jun 2010 14:35:23 GMT
Dead Code in  ADBXMLStreamReaderImpl.java
-----------------------------------------

                 Key: AXIS2-4741
                 URL: https://issues.apache.org/jira/browse/AXIS2-4741
             Project: Axis2
          Issue Type: Bug
          Components: adb
    Affects Versions: 1.5
         Environment: Windows XP, axis2-1.5.jar, Tomcat.
            Reporter: Shiva Kumar Yemula
            Priority: Blocker


In public ADBXMLStreamReaderImpl(QName adbBeansQName,
                                  Object[] properties,
                                  Object[] attributes,
                                  TypeTable typeTable,
                                  boolean qualified) {}  at the line 131 has 
String prefix =qname.getPrefix();
                        if(prefix ==null && "".equals(prefix)){
                            prefix = OMSerializerUtil.getNextNSPrefix();
                        }

OMSerializerUtil.getNextNSPrefix(); will never be executed. Please change the && to
|| or change the entire 'if' condition. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message