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/06/23 14:15:44 UTC

svn commit: r1749895 - /ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/util/UtilAccounting.java

Author: arunpatidar
Date: Thu Jun 23 14:15:44 2016
New Revision: 1749895

URL: http://svn.apache.org/viewvc?rev=1749895&view=rev
Log:
Applied patch from jira issue - OFBIZ-7382 - Enforce noninstantiability to UtilAccounting Class. Thanks Rishi Solanki and Aman Mishra for your contribution.

Modified:
    ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/util/UtilAccounting.java

Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/util/UtilAccounting.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/util/UtilAccounting.java?rev=1749895&r1=1749894&r2=1749895&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/util/UtilAccounting.java (original)
+++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/util/UtilAccounting.java Thu Jun 23 14:15:44 2016
@@ -35,9 +35,11 @@ import org.ofbiz.entity.condition.Entity
 import org.ofbiz.entity.util.EntityQuery;
 
 
-public class UtilAccounting {
+public final class UtilAccounting {
+	
+    public static final String module = UtilAccounting.class.getName();
 
-    public static String module = UtilAccounting.class.getName();
+    private UtilAccounting() {}
 
     /**
      * Get the GL Account for a product or the default account type based on input. This replaces the simple-method service