[
https://issues.apache.org/jira/browse/OFBIZ-11723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suraj Khurana closed OFBIZ-11723.
---------------------------------
Fix Version/s: Upcoming Branch
Resolution: Implemented
> Enforce noninstantiability to FinAccountHelper Class
> ----------------------------------------------------
>
> Key: OFBIZ-11723
> URL:
https://issues.apache.org/jira/browse/OFBIZ-11723> Project: OFBiz
> Issue Type: Sub-task
> Components: order
> Affects Versions: Trunk
> Reporter: Suraj Khurana
> Assignee: Suraj Khurana
> Priority: Major
> Fix For: Upcoming Branch
>
>
> - Make FinAccountHelper class as final.
> - Add a private constructor.
> - Make the following public static variable as private.
> {code:java}
> public static final String MODULE = FinAccountHelper.class.getName();
> public static final int decimals = UtilNumber.getBigDecimalScale("finaccount.decimals");
> public static final RoundingMode rounding = UtilNumber.getRoundingMode("finaccount.rounding");
> public static final BigDecimal ZERO = BigDecimal.ZERO.setScale(decimals, rounding);
> public static final String giftCertFinAccountTypeId = "GIFTCERT_ACCOUNT";
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)