ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/LinkedList.java
(Generate patch)

Comparing jsr166/src/main/java/util/LinkedList.java (file contents):
Revision 1.17 by dl, Tue Dec 28 12:14:07 2004 UTC vs.
Revision 1.18 by dl, Tue Dec 28 16:15:36 2004 UTC

# Line 530 | Line 530 | public class LinkedList<E>
530      public E peekFirst() {
531          if (size==0)
532              return null;
533 <        return removeFirst();
533 >        return getFirst();
534      }
535  
536      /**
# Line 544 | Line 544 | public class LinkedList<E>
544      public E peekLast() {
545          if (size==0)
546              return null;
547 <        return removeLast();
547 >        return getLast();
548      }
549  
550      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines