jSparrow v3.21.0/v2.18.0

Released: Sep 17, 2020

v3.21.0/v2.18.0 中的更新

特性

  • 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 Eclipse Plugin
    • Escape User Input in SQL Queries - Extends the scope of the rule by analyzing the variable holding the SQL query.
    • Clean Up Third Party Dependencies - Using some third party dependencies directly in the OSGi bundle classpath.