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/05/22 11:36:00 UTC

[jira] [Created] (OFBIZ-11723) Enforce noninstantiability to FinAccountHelper Class

Suraj Khurana created OFBIZ-11723:
-------------------------------------

             Summary: 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


- 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)