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

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Implemented
    • Trunk
    • None
    • order
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: