Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7902387

Refactoring: misc part 1

    XMLWordPrintable

    Details

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

      Description

      For easier code reading the following refactoring can be done:
      - Boolean constructor call (replace with Boolean.valueOf())
      - Bulk operation can be used instead of iteration (replace with addAll())
      - Call to 'Arrays.asList()' with too few arguments (replace with Collections.singletonList())
      - 'Collection.toArray()' call style (replace argument with empty array)
      - 'addAll()' call can be replaced with parametrized constructor call
      - C-style array declaration (replace with Java style)
      - Standard Charset object can be used ("UTF8" to be replaced with StandardCharsets.UTF_8)
      - Unnecessary 'String.valueOf()' call

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: