Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-166

Potpourri 2

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.2
    • 0.2
    • None
    • None

    Description

      Another large changelist constructed from FindBugs and IntelliJ analysis. It's big enough I figured I'd run it by the list. Key changes:

      • Making stuff final, private that can be
      • Dead code elimination
      • Simplifying JUnit assertions – "assertTrue(a.equals(b) == true)" could be "assertEquals(a, b)" for instance. Also fixed some expected/actual value issues
      • Not compiling a Pattern object millions of times – String.split() and replace()/replaceAll() do this and can be profitably replaced with a precompiled Pattern.
      • Small bug fixes picked up by analysis

      Attachments

        1. MAHOUT-166.patch
          90 kB
          Sean R. Owen

        Activity

          People

            srowen Sean R. Owen
            srowen Sean R. Owen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: