ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/SynchronizedLinkedListQueue.java
(Generate patch)

Comparing jsr166/src/test/loops/SynchronizedLinkedListQueue.java (file contents):
Revision 1.1 by dl, Tue Oct 4 20:09:41 2005 UTC vs.
Revision 1.3 by jsr166, Thu Oct 29 23:09:08 2009 UTC

# Line 1 | Line 1
1 + /*
2 + * Written by Doug Lea with assistance from members of JCP JSR-166
3 + * Expert Group and released to the public domain, as explained at
4 + * http://creativecommons.org/licenses/publicdomain
5 + */
6 +
7   import java.util.*;
8   import java.util.concurrent.*;
9   import java.util.concurrent.locks.*;
# Line 5 | Line 11 | import java.util.concurrent.locks.*;
11   public class SynchronizedLinkedListQueue<E>
12      extends AbstractCollection<E> implements Queue<E> {
13      private final Queue<E> q = new LinkedList<E>();
14 <    
14 >
15      public synchronized Iterator<E> iterator() {
16          return q.iterator();
17      }
# Line 68 | Line 74 | public class SynchronizedLinkedListQueue
74      }
75  
76   }
71

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines