jSparrow Releases

Released: Oct 26, 2022

Updates in v4.13.1

Fixes

jSparrow Eclipse Plugin

  • Cannot initialize class JNA Native - Fixed a license validation issue on some Eclipse versions started with JDK 11+.

Released: Sep 26, 2022

Updates in v4.13.0/v3.20.0

Features

jSparrow Eclipse Plugin and Maven Plugin

  • New Rules
    • Replace Set.removeAll With ForEach - Calling the method 'removeAll' on a Set with a List as an invocation argument may lead to performance problems due to a possible 'O(n^2)' complexity. This rule replaces such invocations.
    • Replace Wrong Class for Logger - If a given logger is initialized with a class that is different from the class where it is declared, then this rule will replace the wrong initialization argument with the correct one...

Released: Jun 23, 2022

Updates in v4.12.0/v3.19.0

Features

jSparrow Eclipse Plugin and Maven Plugin

  • New Rule
    • Replace Request Mapping Annotation - Spring Framework 4.3 introduced composed annotations including '@GetMapping', '@PostMapping', etc. as an alternative of the @RequestMapping(method=...) for annotating HTTP request handlers. Accordingly, this rule replaces the @RequestMapping annotations with their equivalent dedicated alternatives.

Released: May 19, 2022

Updates in v4.11.0/v3.18.0

Features

jSparrow Eclipse Plugin and Maven Plugin

  • New Rule
    • Remove Redundant Close - This rule is used to remove redundant 'close()' invocation statements on resources which are declared in the header of try-with-resource statements.

jSparrow Eclipse Plugin

  • More jSparrow Markers - Added 13 additional markers for the following rules taking the total number of available jSparrow Markers to 89:
    • Add Braces to Control Statements.
    • Remove Deprecated Date Constructs.
    • Replace Nested Loops with flatMap...

Released: Apr 25, 2022

Updates in v4.10.0

Features

jSparrow Eclipse Plugin

  • New Rule
    • Remove Unused Types - This rule finds the type declarations that are never used and removes them. Users can choose to remove types that are only used in test sources, together with their corresponding tests. Any annotation except for @Deprecated and @SuppressWarnings prevents the type declaration from being considered as unused.
  • More jSparrow Markers - Added 10 additional markers for the following rules taking the total number of available jSparrow...

Released: Mar 17, 2022

Updates in v4.9.0/v3.16.0

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...

Released: Feb 17, 2022

Updates in v4.8.0

Features

jSparrow Eclipse Plugin

  • New Rule
    • Remove Unused Fields - This rule finds the field declarations that are never used and removes them. Reassignments in the same or in external Java files are not counted as active usages. A dedicated configuration wizard allows users to choose whether to remove fields whose initializers may cause side effects. Any annotation except for @Deprecated and @SuppressWarnings prevents the field declaration from being considered as unused.
  • More jSparrow Markers...

Released: Jan 20, 2022

Updates in v4.7.0/v3.14.0

Features

jSparrow Eclipse Plugin and Maven Plugin

  • New Rule
    • Use Dedicated AssertJ Assertions - AssertJ contains a rich API for writing specific assertions about different types of objects. Making use of the appropriate dedicated methods when writing certain assertions will simplify the test code and improve the corresponding failure messages. This rule finds AssertJ assertions that can be simplified and replaces them with equivalent dedicated assertions.

jSparrow Eclipse Plugin

  • More jSparrow...

Released: Dec 16, 2021

Updates in v4.6.0/v3.13.0

Features

jSparrow Eclipse Plugin and Maven Plugin

  • New Rules
    • Chain AssertJ AssertThat Statements - Encourages writing fluent test cases by chaining the assertions that target the same object instead of invoking assertThat (opens new window) multiple times.
    • Shift AssertJ Description Before Assertion - Provides methods for setting assertion descriptions or error messages.
  • More jSparrow Markers - This release adds 10 additional markers for the following rules:
    • Avoid Concatenation in Logging...

Released: Nov 18, 2021

Updates in v4.5.0/v3.12.0

Features

  • jSparrow Eclipse Plugin and Maven Plugin
    • New Rule
      • Use Java Records - Record classes help to model plain data aggregates with less ceremony than normal classes. This rule replaces the declarations of local classes, inner classes, and package private root classes with record class declarations.