jSparrow v3.24.0/v3.1.0

Adds new refactoring rules.
December 18, 2020
New Version

Features

  • jSparrow Eclipse Plugin and Maven Plugin
    • New Rules
      • Replace JUnit ExpectedException with assertThrows - The goal of this rule is to make a transition from ExpectedException to testing exceptions with assertThrows.
      • Replace JUnit Expected Annotation Property with assertThrows - Using the expected annotation property for testing the thrown exceptions is rather misleading. Often it becomes unclear which part of the test code is responsible for throwing the exception. This rule aims to overcome this problem by replacing the expected annotation property with assertThrows.
      • Use Files.writeString - Java 11 introduced Files.writeString(Path, CharSequence, Charset, OpenOption...) and Files.writeString(Path, CharSequence, OpenOption...) for writing text into a file by one single invocation and in an efficient non-blocking manner. This rule replaces BufferedWriters that are used to write a single value into a file, with Files.write(...). Thus, achieving better performance when writing small files and improving the readability by removing code clutter.
jSparrow

jSparrow

Automatic Java refactoring.

Got a Question?

Live Chat with our jSparrow licensing specialists now.