jSparrow v4.7.0/v3.14.0

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 Markers - Added 21 additional markers for the following rules taking the total number of available jSparrow Markers to 41:
    • Replace For-Loop with Enhanced-For-Loop.
    • Replace While-Loop with Enhanced For-Loop.
    • Replace For-Loop with Stream::collect(Collectors.joining()).
    • Use String Join.
    • Use Multi Catch.
    • Use Try-With-Resource.
    • Use Arrays Stream.
    • Use Stream::filter.
    • Use Stream::map.
    • Use Stream::collect.
    • Use Factory Methods for Collections.
    • Replace Stream Collect By ToList.
    • Replace For-Loop with Stream::Match.
    • Replace For-Loop with Stream::findFirst.
    • Replace For-Loop with Stream::forEach.
    • Replace For-Loop with Stream::sum.
    • Replace For-Loop with Stream::takeWhile.
    • Use Text Block.
    • Use Switch Expression.
    • Use Java Records.
    • Use Pattern Matching for Instanceof.
  • jSparrow Markers Preference Page - Redesigned the jSparrow Markers preference page to group the markers by tags.

Fixes

jSparrow Eclipse Plugin

  • Use Stream::map - Avoids duplicating the final modifier in the parameter declaration of the extracted Stream or Optional map.