jSparrow v3.21.0/v2.18.0

在 Eclipse 和 Maven 外掛程式(外掛程式)中添加新的重構規則。
9月 24, 2020
新版本

特性

jSparrow Eclipse Plugin and Maven Plugin

  • New Rules:
    • Create Temp Files Using Java NIO - A suitable alternative for creating temporary files in security-sensitive applications is to use java.nio.file.Files.createTempFile(String, String, FileAttribute...) instead of java.io.File.createTempFile(String, String).
    • Use Files.newBufferedReader - Java 7 introduced the Files class that contains convenience methods for operating on files. This rule makes use of the Files.newBufferedReader method for initializing BufferedReader objects to read text files in an efficient non-blocking manner.
    • Use Offset Based String Methods - This rule avoids creating intermediate String instances by making use of the overloaded offset based methods in the String API.
    • Use Predefined Standard Charset - In order to avoid creating new objects, this rule replaces invocations of Charset.forName(String) by constants defined in StandardCharsets.
jSparrow

jSparrow

自動 Java 重構。

有任何疑問嗎?

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