You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Rishi Solanki (JIRA)" <ji...@apache.org> on 2016/06/09 14:14:21 UTC
[jira] [Created] (OFBIZ-7272) Enforce noninstantiability with a
private constructor
Rishi Solanki created OFBIZ-7272:
------------------------------------
Summary: Enforce noninstantiability with a private constructor
Key: OFBIZ-7272
URL: https://issues.apache.org/jira/browse/OFBIZ-7272
Project: OFBiz
Issue Type: Improvement
Components: ALL COMPONENTS
Affects Versions: Trunk
Reporter: Rishi Solanki
I have discusses this in past on mailing list, that Utility, helper, worker classes which contains only static methods should not be instantiable. Also we can restrict it by adding a private constructor.
Currently OFBiz has many such classes which should have private constructor. Identify all the *Worker.java, *.Helper.java, and *Util.java which do not have any non static method/member are eligible for having a private constructor.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)