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.2 by dl, Mon Feb 19 00:46:06 2007 UTC vs.
Revision 1.4 by jsr166, Tue Mar 15 19:47:06 2011 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
4 > * http://creativecommons.org/publicdomain/zero/1.0/
5   */
6  
7   import java.util.*;
# Line 11 | 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 74 | Line 74 | public class SynchronizedLinkedListQueue
74      }
75  
76   }
77

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines