svn commit: r1750648 - /ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ProtectViewWorker.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1750648 - /ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ProtectViewWorker.java

Arun Patidar-4
Author: arunpatidar
Date: Wed Jun 29 14:07:41 2016
New Revision: 1750648

URL: http://svn.apache.org/viewvc?rev=1750648&view=rev
Log:
Applied patch from jira issue - OFBIZ-7466 - Enforce noninstantiability to ProtectViewWorker Class. Thanks Pratik Kulshreshth for your contribution.

Modified:
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ProtectViewWorker.java

Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ProtectViewWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ProtectViewWorker.java?rev=1750648&r1=1750647&r2=1750648&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ProtectViewWorker.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ProtectViewWorker.java Wed Jun 29 14:07:41 2016
@@ -39,7 +39,7 @@ import org.ofbiz.entity.util.EntityQuery
 /**
  * Common Workers
  */
-public class ProtectViewWorker {
+public final class ProtectViewWorker {
 
     private final static String module = ProtectViewWorker.class.getName();
     private static final String resourceWebapp = "WebappUiLabels";
@@ -47,6 +47,8 @@ public class ProtectViewWorker {
     private static final Map<String, Long> durationByViewAccessed = new ConcurrentHashMap<String, Long>();
     private static final Long one = new Long(1);
 
+    private ProtectViewWorker () {}
+
     /**
      * An HTTP WebEvent handler that checks to see if an userLogin should be tarpitted
      * The decision is made in regard of number of hits in last period of time