make Hashtable.toString synchronized

This commit is contained in:
Joel Dice 2009-05-31 14:16:08 -06:00
parent b1d92fc6c2
commit 9d6a3021ca

View File

@ -28,7 +28,7 @@ public class Hashtable<K, V> implements Map<K, V> {
}
}
public String toString() {
public synchronized String toString() {
return map.toString();
}