Author: arunpatidar
Date: Tue Jun 28 14:44:16 2016
New Revision: 1750527
URL:
http://svn.apache.org/viewvc?rev=1750527&view=revLog:
Applied patch from jira issue - OFBIZ-7446 - Enforce noninstantiability to WebSiteWorker Class. Thanks Rishi Solanki and Rohit Koushal for your contribution.
Modified:
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/website/WebSiteWorker.java
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/website/WebSiteWorker.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/website/WebSiteWorker.java?rev=1750527&r1=1750526&r2=1750527&view=diff==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/website/WebSiteWorker.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/website/WebSiteWorker.java Tue Jun 28 14:44:16 2016
@@ -30,10 +30,12 @@ import org.ofbiz.entity.util.EntityQuery
/**
* WebSiteWorker - Worker class for web site related functionality
*/
-public class WebSiteWorker {
+public final class WebSiteWorker {
public static final String module = WebSiteWorker.class.getName();
+ private WebSiteWorker() {}
+
public static String getWebSiteId(ServletRequest request) {
ServletContext application = ((ServletContext) request.getAttribute("servletContext"));