mrglavas    2004/10/08 08:08:49

  Modified:    java/src/org/apache/xerces/impl/dv/util ByteListImpl.java
  Log:
  Some cleanup.
  
  Revision  Changes    Path
  1.5       +8 -5      
xml-xerces/java/src/org/apache/xerces/impl/dv/util/ByteListImpl.java
  
  Index: ByteListImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/dv/util/ByteListImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ByteListImpl.java 6 Oct 2004 14:56:52 -0000       1.4
  +++ ByteListImpl.java 8 Oct 2004 15:08:49 -0000       1.5
  @@ -56,9 +56,11 @@
        *   <code>item</code>. 
        */
       public boolean contains(byte item) {
  -        for(int i = 0;i < data.length; i++)
  -            if(data[i] == item)
  +        for (int i = 0; i < data.length; ++i) {
  +            if (data[i] == item) {
                   return true;
  +            }
  +        }
           return false;
       }
   
  @@ -72,8 +74,9 @@
        *   INDEX_SIZE_ERR: if <code>index</code> is greater than or equal to the 
        *   number of objects in the list.
        */
  -    public byte item(int index)
  -                      throws XSException {
  +    public byte item(int index) 
  +        throws XSException {
  +        
           if(index < 0 || index > data.length - 1) {
               throw new XSException(XSException.INDEX_SIZE_ERR, null);
           }
  
  
  

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

Reply via email to