rsitze      2002/06/10 15:58:19

  Modified:    java/src/org/apache/axis/wsdl/symbolTable Utils.java
  Log:
  Consolidate non-boolean tests for 'true' (String/Integer) in JavaUtils.
  JavaUtils is getting to be a mess...
  
  Revision  Changes    Path
  1.10      +2 -2      xml-axis/java/src/org/apache/axis/wsdl/symbolTable/Utils.java
  
  Index: Utils.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/symbolTable/Utils.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Utils.java        10 Jun 2002 14:00:38 -0000      1.9
  +++ Utils.java        10 Jun 2002 22:58:18 -0000      1.10
  @@ -55,6 +55,7 @@
   package org.apache.axis.wsdl.symbolTable;
   
   import org.apache.axis.Constants;
  +import org.apache.axis.utils.JavaUtils;
   import org.w3c.dom.NamedNodeMap;
   import org.w3c.dom.Node;
   
  @@ -367,8 +368,7 @@
   
           // An alternate qname is returned if nillable
           if (typeAttrName.equals("type")) {
  -            String nillable = getAttribute(node, "nillable");
  -            if (nillable != null && nillable.equalsIgnoreCase("true")) {
  +            if (JavaUtils.isTrue(getAttribute(node, "nillable"))) {
                   qName = getNillableQName(qName);
               }
           }
  
  
  


Reply via email to