You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2004/09/15 07:24:07 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/impl/dv/xs ListDV.java

mrglavas    2004/09/14 22:24:07

  Modified:    java/src/org/apache/xerces/impl/dv/xs ListDV.java
  Log:
  Fixing up indentation in ListDV$ListData.
  
  Revision  Changes    Path
  1.8       +11 -9     xml-xerces/java/src/org/apache/xerces/impl/dv/xs/ListDV.java
  
  Index: ListDV.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/dv/xs/ListDV.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ListDV.java	15 Sep 2004 05:12:23 -0000	1.7
  +++ ListDV.java	15 Sep 2004 05:24:07 -0000	1.8
  @@ -89,17 +89,19 @@
           }
           
           public boolean contains(Object item) {
  -        	for(int i = 0;i < data.length; i++) {
  -        		if(item == data[i])
  -        			return true;
  -        	}
  -        	return false;
  +            for (int i = 0;i < data.length; i++) {
  +                if (item == data[i]) {
  +                    return true;
  +                }
  +            }
  +            return false;
           }
           
           public Object item(int index) throws XSException {
  -        	if(index < 0 || index > data.length - 1) 
  -        		throw new XSException(XSException.INDEX_SIZE_ERR, null);
  -        	return data[index];
  +            if (index < 0 || index > data.length - 1) {
  +                throw new XSException(XSException.INDEX_SIZE_ERR, null);
  +            }
  +            return data[index];
           }
       }
   } // class ListDV
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org