Author: xor
Date: 2008-09-23 11:00:04 +0000 (Tue, 23 Sep 2008)
New Revision: 22759
Modified:
trunk/plugins/WoT/Config.java
Log:
Remove double synchronization.
Modified: trunk/plugins/WoT/Config.java
===================================================================
--- trunk/plugins/WoT/Config.java 2008-09-23 10:44:06 UTC (rev 22758)
+++ trunk/plugins/WoT/Config.java 2008-09-23 11:00:04 UTC (rev 22759)
@@ -45,10 +45,8 @@
* @param value
*/
public synchronized void set(String key, String value) {
- synchronized(this) {
- params.put(key, value);
- db.store(params);
- }
+ params.put(key, value);
+ db.store(params);
}
/**
@@ -63,7 +61,7 @@
/**
* @param key name of the configuration parameter
- * @return whethet it exists or not
+ * @return whether it exists or not
*/
public synchronized boolean contains(String key) {
return params.containsKey(key);