You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streams.apache.org by mf...@apache.org on 2014/05/12 21:54:19 UTC

[7/9] git commit: good call now synchronized on the same object for readability. execution is not affected.

good call now synchronized on the same object for readability. execution is not affected.


Project: http://git-wip-us.apache.org/repos/asf/incubator-streams/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-streams/commit/ebc1938d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-streams/tree/ebc1938d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-streams/diff/ebc1938d

Branch: refs/heads/master
Commit: ebc1938d97780231e1257f629aef87c22acf3c3d
Parents: 05d513f
Author: Matthew Hager <Ma...@gmail.com>
Authored: Mon May 12 12:57:35 2014 -0500
Committer: Matthew Hager <Ma...@gmail.com>
Committed: Mon May 12 12:57:35 2014 -0500

----------------------------------------------------------------------
 .../src/main/java/org/apache/streams/urls/DomainSensitivity.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/ebc1938d/streams-contrib/streams-processor-urls/src/main/java/org/apache/streams/urls/DomainSensitivity.java
----------------------------------------------------------------------
diff --git a/streams-contrib/streams-processor-urls/src/main/java/org/apache/streams/urls/DomainSensitivity.java b/streams-contrib/streams-processor-urls/src/main/java/org/apache/streams/urls/DomainSensitivity.java
index 7db4874..ac97ba4 100644
--- a/streams-contrib/streams-processor-urls/src/main/java/org/apache/streams/urls/DomainSensitivity.java
+++ b/streams-contrib/streams-processor-urls/src/main/java/org/apache/streams/urls/DomainSensitivity.java
@@ -80,7 +80,7 @@ public abstract class DomainSensitivity {
      */
     private static void purgeAnyExpiredDomains() {
         // ensure this method is synchronized to get the proper information
-        synchronized (RECENT_DOMAINS) {
+        synchronized (DomainSensitivity.class) {
             // figure the time that we would like for these domains to expire
             long currentTime = new Date().getTime();
             // see if there is any work that 'can' be done