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/04 14:47:30 UTC

svn commit: r1751298 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelUtil.java

Author: arunpatidar
Date: Mon Jul  4 14:47:30 2016
New Revision: 1751298

URL: http://svn.apache.org/viewvc?rev=1751298&view=rev
Log:
Applied patch from jira issue - OFBIZ-7732 - Enforce noninstantiability to ModelUtil class. Thanks Rohit Koushal for your contribution.

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelUtil.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelUtil.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelUtil.java?rev=1751298&r1=1751297&r2=1751298&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelUtil.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelUtil.java Mon Jul  4 14:47:30 2016
@@ -30,9 +30,12 @@ import org.ofbiz.entity.model.ModelViewE
  * Generic Entity - General Utilities
  *
  */
-public class ModelUtil {
+public final class ModelUtil {
 
     public static final String module = ModelUtil.class.getName();
+    private static final String vowelBag = "aeiouyAEIOUY";
+
+    private ModelUtil () {}
 
     /**
      * Changes the first letter of the passed String to upper case.
@@ -141,7 +144,6 @@ public class ModelUtil {
         return dbName.toString();
     }
 
-    public static String vowelBag = "aeiouyAEIOUY";
     /**  Start by removing all vowels, then pull 1 letter at a time off the end of each _ separated segment, go until it is less than or equal to the desired length
      *
      * @param dbName