You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ar...@apache.org on 2016/07/02 06:06:43 UTC

svn commit: r1751027 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilGenerics.java

Author: arunpatidar
Date: Sat Jul  2 06:06:43 2016
New Revision: 1751027

URL: http://svn.apache.org/viewvc?rev=1751027&view=rev
Log:
Applied patch from jira issue - OFBIZ-7588 - Enforce noninstantiability to UtilGenerics class. Thanks Rishi Solanki and  Rohit Koushal for your contribution.

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilGenerics.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilGenerics.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilGenerics.java?rev=1751027&r1=1751026&r2=1751027&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilGenerics.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilGenerics.java Sat Jul  2 06:06:43 2016
@@ -25,10 +25,12 @@ import java.util.Map;
 import java.util.Set;
 import java.util.Stack;
 
-public class UtilGenerics {
+public final class UtilGenerics {
 
     public static final String module = UtilMisc.class.getName();
 
+    private UtilGenerics() {}
+
     @SuppressWarnings("unchecked")
     public static <V> V cast(Object object) {
         return (V) object;