james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r801761 - /james/jspf/trunk/resolver/src/main/java/org/apache/james/jspf/policies/local/FallbackPolicy.java
Date Thu, 06 Aug 2009 18:31:23 GMT
Author: norman
Date: Thu Aug  6 18:31:23 2009
New Revision: 801761

URL: http://svn.apache.org/viewvc?rev=801761&view=rev
Log:
Remove unnecessary synchronized statements (JSPF-82)

Modified:
    james/jspf/trunk/resolver/src/main/java/org/apache/james/jspf/policies/local/FallbackPolicy.java

Modified: james/jspf/trunk/resolver/src/main/java/org/apache/james/jspf/policies/local/FallbackPolicy.java
URL: http://svn.apache.org/viewvc/james/jspf/trunk/resolver/src/main/java/org/apache/james/jspf/policies/local/FallbackPolicy.java?rev=801761&r1=801760&r2=801761&view=diff
==============================================================================
--- james/jspf/trunk/resolver/src/main/java/org/apache/james/jspf/policies/local/FallbackPolicy.java
(original)
+++ james/jspf/trunk/resolver/src/main/java/org/apache/james/jspf/policies/local/FallbackPolicy.java
Thu Aug  6 18:31:23 2009
@@ -78,9 +78,7 @@
                 host = rawHost;
             }
 
-            synchronized (entryMap) {
-                entryMap.put(host, spfRecord);
-            }
+            entryMap.put(host, spfRecord);
         } catch (SPFResultException e) {
             throw new IllegalArgumentException("Invalid SPF-Record: "
                     + rawSpfRecord);
@@ -94,9 +92,7 @@
      */
     public void clearEntrys() {
         log.debug("Clear all entries");
-        synchronized (entryMap) {
-            entryMap.clear();
-        }
+        entryMap.clear();
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message