Author: arunpatidar
Date: Tue Jul 5 13:57:14 2016
New Revision: 1751477
URL:
http://svn.apache.org/viewvc?rev=1751477&view=revLog:
Applied patch from jira issue - OFBIZ-7708 - Enforce noninstantiability to UrlServletHelper class. Thanks Rahul Singh Kushwah and Rishi Solanki for your contribution.
Modified:
ofbiz/trunk/framework/common/src/org/ofbiz/common/UrlServletHelper.java
Modified: ofbiz/trunk/framework/common/src/org/ofbiz/common/UrlServletHelper.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/src/org/ofbiz/common/UrlServletHelper.java?rev=1751477&r1=1751476&r2=1751477&view=diff==============================================================================
--- ofbiz/trunk/framework/common/src/org/ofbiz/common/UrlServletHelper.java (original)
+++ ofbiz/trunk/framework/common/src/org/ofbiz/common/UrlServletHelper.java Tue Jul 5 13:57:14 2016
@@ -41,10 +41,12 @@ import org.ofbiz.entity.util.EntityUtil;
import org.ofbiz.webapp.control.ContextFilter;
import org.ofbiz.webapp.website.WebSiteWorker;
-public class UrlServletHelper extends ContextFilter {
+public final class UrlServletHelper extends ContextFilter {
public final static String module = UrlServletHelper.class.getName();
+ private UrlServletHelper() {}
+
public static void setRequestAttributes(ServletRequest request, Delegator delegator, ServletContext servletContext) {
HttpServletRequest httpRequest = (HttpServletRequest) request;
// check if multi tenant is enabled