Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-856

Code refactoring in NumberUtils

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2
    • Component/s: lang.math.*
    • Labels:
      None

      Description

      NumberUtils contains some redundant pieces of code which are doing the same validation on the array parameter. This validation should be extracted to a method which will be called by other methods in this class.

        Attachments

        1. NumberUtils.diff
          6 kB
          nguyen phuc lam

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ruado1987 nguyen phuc lam
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: