jSparrow v3.23.0/v3.0.0

Released: Nov 19, 2020

v3.23.0/v3.0.0 中的更新

特性

  • jSparrow Eclipse Plugin and Maven Plugin
    • New Rule:
      • Use Comparator Methods - Java 8 introduced new factory methods in the Comparator interface for simplifying the creation of Comparator instances. This rule replaces lambda expressions representing comparators with simple invocations of Comparator factory methods, hence removing some code clutter and improving readability.
  • jSparrow Maven Plugin
    • The jSparrow report Goal - This goal is introduced to allow users to try the jSparrow Maven plugin on their sources for free. Similar to the refactor goal, the report goal analyzes the project and computes refactorings with the selected rules. As a result, jSparrow generates an HTML report with the computed findings. Similar reports are available in the statistics page (e.g., for jenkins-core). The report goal supports the same parameters as the refactor goal.
    • The formatter Parameter - A parameter is introduced in the refactor goal, to allow users to specify a customized Eclipse formatter. The formatter can be exported from the Eclipse IDE and provided to the refactor goal through -Dformatter=<path-to-formatter> parameter. The specified formatter is used by the Reformat Code rule so that it provides the same styling as the customized formatter in the Eclipse IDE.
    • The selectedSources Parameter - A parameter -DselectedSources=<glob-expressions> is introduced in the refactor goal (and the report goal) to allow users to specify sources that jSparrow shall consider for refactorings. The sources can be specified by using glob expressions.

修補程式

  • jSparrow Eclipse Plugin
    • New Imports Name Conflicts - Prevents some conflicts that may arise when the name of a newly imported type coincides with the name of a local variable.