Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-555

Use automated IDE refactoring to clean up

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Optional Optional
    • 7.0.0.Beta2
    • 7.0.0.Beta1
    • None
    • None
    • NEW
    • NEW

      Now that we've moved over to more recent versions of Java, we can start leveraging its features. There are a couple of low hanging fruits we could do by simply using capabilities of the IDE:

      • Converting code to use the diamond operator, for less boilerplate.
      • Adding @Override. It was shocking for me to find out how often this annotation is not added, making me lose all of its benefits.
      • Organizing imports, getting rid of the many unused imports we currently have throughout the codebase.
      • Replacing anonymous classes with lambdas where possible, allowing for more easily readable and marginally better performing code.

      Alternatively, we could also use the IDE to remove unused methods (of which there is many), but that is not as safe a change as the above are.

              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              lpetrovi@redhat.com Lukáš Petrovický (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: