Refactoring: misc part 3

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • st4.0
    • Affects Version/s: st4.0
    • Component/s: tools
    • None

      For easier code reading the following refactoring can be done:
      - 'equals()' expression replaceable by 'Objects.equals()' expression
      - Explicit type can be replaced with <>
      - Identical 'catch' branches in 'try' statement
      - Simplify catch blocks
      - 'try finally' replaceable with 'try' with resources,
      - Add t-w-r where applicable
      - update BaseWriter, Reader, Classpath, MultipleFileReader to be autocloseable
      - replace some simple while loops with foreach
      - 'if' replaceable with 'switch'
      - String concatenation as argument to 'StringBuilder.append()' call

            Assignee:
            Victor Rudometov
            Reporter:
            Victor Rudometov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: