--- jsr166/src/test/loops/SMap.java 2005/05/02 19:19:38 1.1 +++ jsr166/src/test/loops/SMap.java 2009/10/29 23:09:08 1.3 @@ -1,3 +1,8 @@ +/* + * Written by Doug Lea with assistance from members of JCP JSR-166 + * Expert Group and released to the public domain, as explained at + * http://creativecommons.org/licenses/publicdomain + */ import java.util.*; import java.util.concurrent.*; import java.util.concurrent.locks.*; @@ -17,7 +22,7 @@ public class SMap implements Map { this.m = m; } - public SMap() { + public SMap() { this(new TreeMap()); // use TreeMap by default } @@ -43,15 +48,15 @@ public class SMap implements Map { public synchronized Set keySet() { // Not implemented return m.keySet(); } - + public synchronized Set entrySet() { // Not implemented return m.entrySet(); } - + public synchronized Collection values() { // Not implemented return m.values(); } - + public synchronized boolean equals(Object o) { return m.equals(o); } @@ -76,5 +81,5 @@ public class SMap implements Map { public synchronized void clear() { m.clear(); } - + }