jSparrow v3.24.0/v3.1.0

Adiciona novas regras de refatoração.
Dezembro 18, 2020
Nova versão

Recursos

  • 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

Refatoração automática de Java.

Tem alguma pergunta?

Chat ao vivo com nossos especialistas de licenciamento de jSparrow.