Uploaded image for project: 'Commons Numbers'
  1. Commons Numbers
  2. NUMBERS-116

Remove redundant methods in ArithmeticUtils

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0-beta1
    • core
    • None

    Description

      As has been discussed on the developers' mailing list, the following methods from the class ArithmeticUtils can be removed:

      addAndCheck(int, int)
      addAndCheck(long, long)
      mulAndCheck(int, int)
      mulAndCheck(long, long)
      subAndCheck(int, int)
      subAndCheck(long, long)

      And their usages replaced with the following equivalent methods from java.lang.Math:

      addExact(int, int)
      addExact(long, long)
      multiplyExact(int, int)
      multiplyExact(long, long)
      subtractExact(int, int)
      subtractExact(long, long)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Schamschi Heinrich Bohne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h