You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Suraj Khurana (Jira)" <ji...@apache.org> on 2020/06/04 09:12:00 UTC
[jira] [Closed] (OFBIZ-11721) Enforce noninstantiability to
BillingAccountWorker Class
[ https://issues.apache.org/jira/browse/OFBIZ-11721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suraj Khurana closed OFBIZ-11721.
---------------------------------
Fix Version/s: Upcoming Branch
Resolution: Implemented
> Enforce noninstantiability to BillingAccountWorker Class
> --------------------------------------------------------
>
> Key: OFBIZ-11721
> URL: https://issues.apache.org/jira/browse/OFBIZ-11721
> Project: OFBiz
> Issue Type: Sub-task
> Components: accounting
> Affects Versions: Upcoming Branch
> Reporter: Suraj Khurana
> Assignee: Suraj Khurana
> Priority: Major
> Fix For: Upcoming Branch
>
>
> - Make BillingAccountWorker class as final.
> - Add a private constructor.
> - Make the following variable as private
> {code:java}
> public static final String MODULE = BillingAccountWorker.class.getName();
> public static final String resourceError = "AccountingUiLabels";
> public static final int decimals = UtilNumber.getBigDecimalScale("order.decimals");
> public static final RoundingMode rounding = UtilNumber.getRoundingMode("order.rounding");
> public static final BigDecimal ZERO = BigDecimal.ZERO.setScale(decimals, rounding);
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)