svn commit: r1757983 - /ofbiz/trunk/specialpurpose/solr/src/main/java/org/apache/ofbiz/solr/ProductUtil.java

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

svn commit: r1757983 - /ofbiz/trunk/specialpurpose/solr/src/main/java/org/apache/ofbiz/solr/ProductUtil.java

Arun Patidar-4
Author: arunpatidar
Date: Sat Aug 27 10:25:23 2016
New Revision: 1757983

URL: http://svn.apache.org/viewvc?rev=1757983&view=rev
Log:
Applied patch from jira issue - OFBIZ-7914 - Enforce noninstantiability to ProductUtil class. Thanks Rishi Solanki and Pratik Kulshreshth for your contribution.

Modified:
    ofbiz/trunk/specialpurpose/solr/src/main/java/org/apache/ofbiz/solr/ProductUtil.java

Modified: ofbiz/trunk/specialpurpose/solr/src/main/java/org/apache/ofbiz/solr/ProductUtil.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/src/main/java/org/apache/ofbiz/solr/ProductUtil.java?rev=1757983&r1=1757982&r2=1757983&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/solr/src/main/java/org/apache/ofbiz/solr/ProductUtil.java (original)
+++ ofbiz/trunk/specialpurpose/solr/src/main/java/org/apache/ofbiz/solr/ProductUtil.java Sat Aug 27 10:25:23 2016
@@ -42,9 +42,11 @@ import org.apache.ofbiz.service.LocalDis
 /**
  * Product utility class for solr.
  */
-public abstract class ProductUtil {
+public final class ProductUtil {
     public static final String module = ProductUtil.class.getName();
 
+    private ProductUtil () {}
+
     public static Map<String, Object> getProductContent(GenericValue product, DispatchContext dctx, Map<String, Object> context) {
         GenericDelegator delegator = (GenericDelegator) dctx.getDelegator();
         LocalDispatcher dispatcher = dctx.getDispatcher();