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

Enforce noninstantiability to FinAccountHelper Class

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Agile

                Completed Sprints:
                Community Day 2 - 2016 ended 23/Jun/16
                OFBiz Community Day (May 2020) ended 29/May/20
                View on Board

                Slack

                  Issue deployment