/[classpath]/classpath/java/util/Stack.java
ViewVC logotype

Diff of /classpath/java/util/Stack.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by ericb, Mon Oct 22 03:46:07 2001 UTC revision 1.8 by ericb, Thu Oct 25 07:34:19 2001 UTC
# Line 138  public class Stack extends Vector Line 138  public class Stack extends Vector
138     */     */
139    public synchronized int search(Object o)    public synchronized int search(Object o)
140    {    {
141      for (int i = elementCount - 1; i >=0; --i)      int i = elementCount;
142        if (elementData[i].equals(o))      while (--i >= 0)
143          if (equals(o, elementData[i]))
144          return elementCount - i;          return elementCount - i;
   
145      return -1;      return -1;
146    }    }
147  }  }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26