Uploaded image for project: 'Bookkeeper'
  1. Bookkeeper
  2. BOOKKEEPER-338

Create Version.NEW and Version.ANY static instances of Version so that were not passing around nulls

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.2.0
    • None
    • None

    Description

      Passing null as a parameter into a method makes the intention abiguous. It would be better to pass in defined constants, such as Version.NEW & Version.ANY. This makes the code clearer and more readable.

      Attachments

        1. BOOKKEEPER-338.diff
          18 kB
          Sijie Guo

        Activity

          People

            hustlmsp Sijie Guo
            ikelly Ivan Kelly
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: