svn commit: r1750516 - /ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyTypeHelper.java

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

svn commit: r1750516 - /ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyTypeHelper.java

Arun Patidar-4
Author: arunpatidar
Date: Tue Jun 28 14:12:40 2016
New Revision: 1750516

URL: http://svn.apache.org/viewvc?rev=1750516&view=rev
Log:
Applied patch from jira issue - OFBIZ-7423 - Enforce noninstantiability to PartyTypeHelper Class. Thanks Rishi Solanki and  Amit Gadaley for your contribution.

Modified:
    ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyTypeHelper.java

Modified: ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyTypeHelper.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyTypeHelper.java?rev=1750516&r1=1750515&r2=1750516&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyTypeHelper.java (original)
+++ ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyTypeHelper.java Tue Jun 28 14:12:40 2016
@@ -30,10 +30,12 @@ import org.ofbiz.entity.util.EntityTypeU
 /**
  * PartyTypeHelper
  */
-public class PartyTypeHelper {
+public final class PartyTypeHelper {
 
     public static final String module = PartyTypeHelper.class.getName();
 
+    private PartyTypeHelper () {}
+
     /** Check if a related party is of the right party type (PERSON or PARTY_GROUP)
      *@param delegator needed Delegator
      *@param partyId a a valid Party Id string