santiagopg    02/05/06 06:54:46

  Modified:    java/src/org/apache/xalan/xsltc/dom DOMImpl.java
  Log:
  Rewrote a couple of if statements as if expressions.
  
  Revision  Changes    Path
  1.71      +4 -9      
xml-xalan/java/src/org/apache/xalan/xsltc/dom/DOMImpl.java
  
  Index: DOMImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/dom/DOMImpl.java,v
  retrieving revision 1.70
  retrieving revision 1.71
  diff -u -r1.70 -r1.71
  --- DOMImpl.java      29 Apr 2002 20:35:16 -0000      1.70
  +++ DOMImpl.java      6 May 2002 13:54:46 -0000       1.71
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: DOMImpl.java,v 1.70 2002/04/29 20:35:16 santiagopg Exp $
  + * @(#)$Id: DOMImpl.java,v 1.71 2002/05/06 13:54:46 santiagopg Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -1985,10 +1985,7 @@
        * Returns the type of a specific node
        */
       public int getType(final int node) {
  -     if (node >= _type.length)
  -         return(0);
  -     else
  -         return _type[node];
  +     return (node >= _type.length) ? 0 : _type[node];
       }
       
       /**
  @@ -1996,10 +1993,8 @@
        */
       public int getNamespaceType(final int node) {
        final int type = _type[node];
  -     if (type >= NTYPES)
  -         return(_namespace[type-NTYPES]);
  -     else
  -         return(0); // default namespace
  +     return (type >= NTYPES) ? _namespace[type-NTYPES] 
  +         : 0;        // default namespace
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to