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

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

# Line 17 | Line 17 | import java.util.concurrent.locks.*;
17   public final class SCollection<E> implements Collection<E> {
18      private final Collection c;
19      private final ReentrantLock l = new ReentrantLock();
20 <    
20 >
21      public SCollection(Collection<E> c) {
22          if (c == null)
23              throw new NullPointerException();
24          this.c = c;
25      }
26  
27 <    public SCollection() {
28 <        this(new ArrayList<E>());
27 >    public SCollection() {
28 >        this(new ArrayList<E>());
29      }
30  
31      public final int size() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines