Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-7272 Enforce noninstantiability to all Utility classes
  3. OFBIZ-11723

Enforce noninstantiability to FinAccountHelper Class

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Implemented
    • Affects Version/s: Trunk
    • Fix Version/s: Upcoming Branch
    • Component/s: order
    • Labels:
      None
    • Sprint:
      Community Day 2 - 2016, OFBiz Community Day (May 2020)

      Description

      • Make FinAccountHelper class as final.
      • Add a private constructor.
      • Make the following public static variable as private.
        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";
        

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                surajk Suraj Khurana
                Reporter:
                surajk Suraj Khurana
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: