Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-350

MapUtils.getNumber sends output to System.out

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2
    • 3.2.2, 4.0-alpha1, 4.0
    • None
    • None

    Description

      MapUtils.getNumber calls "logInfo" on a ParseException and it produces output on the System.out, instead of just returning "null" as the documentation states.

      Since the expected behavior is to return null, not print to System.out. I recommend we remove the call to logInfo and/or remove the System.out.println inside it.

      At minimum, if that's not agreed upon, the "side-effect" of writing to System.out should be documented.

      I'm happy to offer code for either of these fixes.

      Attachments

        Activity

          People

            Unassigned Unassigned
            eakerma Michael Akerman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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