jSparrow v4.0.0/v3.7.0

為突出顯示問題和代碼異味並提供快速修復添加資源標記。
6月 22, 2021
新版本

特性

  • jSparrow Eclipse Plugin
    • jSparrow Markers - jSparrow introduces resource markers for highlighting and providing quick-fixes for issues and code smells. The following rules will automatically generate markers for the Java files that are opened in the editor:
      • Replace equals() on Enum Constants.
      • Use Functional Interfaces.
      • Replace Inefficient Constructors with valueOf().
      • Replace Expression Lambda with Method Reference.
      • Remove Boxing for String Conversions.
      • Replace put(..) with putIfAbsent(..).
      • Remove Null-Checks Before Instanceof.
      • Reorder String Equality Check.
      • Use Comparator Methods.
      • Replace Equality Check with isEmpty().
    • jSparrow Markers are not persisted on disk. They are generated and deleted when a Java file is opened and closed.
  • jSparrow Eclipse Plugin and Maven Plugin
    • New Rules
      • Use Dedicated Assertions - Replaces boolean assertions (e.g. assertTrue and assertFalse) with the corresponding dedicated assertions when testing for equality or null values.
      • Replace JUnit Assumptions with Hamcrest JUnit - This rule replaces the JUnit 4 assumptions assumeThat, assumeNoException, and assumeNotNull by the equivalent Hamcrest JUnit assumption MatcherAssume.assumeThat.
      • Replace JUnit 4 Category with JUnit Jupiter Tag - This rule replaces JUnit 4 @Category annotations with one or more JUnit Jupiter @Tag annotations.
jSparrow

jSparrow

自動 Java 重構。

有任何疑問嗎?

Live Chat現在與我們的jSparrow 專家即時聊天詢問。