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

Comparing jsr166/src/test/loops/SynchronizedCollection.java (file contents):
Revision 1.4 by jsr166, Thu Sep 16 03:57:13 2010 UTC vs.
Revision 1.8 by jsr166, Wed Dec 31 17:00:58 2014 UTC

# Line 1 | Line 1
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   // Stand-alone version of java.util.Collections.synchronizedCollection
9 import java.util.*;
8   import java.io.*;
9 + import java.util.*;
10  
11   public final class SynchronizedCollection<E> implements Collection<E>, Serializable {
12 <    final Collection<E> c;         // Backing Collection
13 <    final Object           mutex;  // Object on which to synchronize
12 >    final Collection<E> c;      // Backing Collection
13 >    final Object mutex;         // Object on which to synchronize
14  
15      public SynchronizedCollection(Collection<E> c) {
16          if (c==null)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines