jSparrow v4.9.0/v3.16.0

Adds new rule that finds declarations of local variables that are never used and removes them.
March 22, 2022
New Version

Features

jSparrow Eclipse Plugin and Maven Plugin

  • New Rule
    • Remove Local Variables - This rule finds declarations of local variables that are never used and removes them. Reassignments as well as increment and decrement operations are not counted as active usages. Any annotation except for @Deprecated and @SuppressWarnings prevents the local variable from being considered as unused.

jSparrow Eclipse Plugin

  • New Rule
    • Remove Unused Methods - This rule finds the method declarations that are never used and removes them. Users can choose to remove methods that are only used in test sources, together with their corresponding tests. Any annotation except for @Deprecated and @SuppressWarnings prevents the method declaration from being considered as unused.
  • More jSparrow Markers - Added 10 additional markers for the following rules taking the total number of available jSparrow Markers to 66:
    • Collapse If Statements.
    • Use Guard Condition.
    • Split Multiple Variable Declarations.
    • Remove Inherited Interfaces from Class Declaration.
    • Remove Double Negations.
    • Remove Unnecessary Semicolons.
    • Remove Modifiers in Interface Properties.
    • Remove toString() on String.
    • Replace String Format by Formatted.
    • Replace Collection.sort with List.sort.
jSparrow

jSparrow

Automatic Java refactoring.

Got a Question?

Live Chat with our jSparrow licensing specialists now.