diff --git a/modernizer-maven-plugin/src/main/resources/modernizer.xml b/modernizer-maven-plugin/src/main/resources/modernizer.xml index 171fc58..8e4e83d 100644 --- a/modernizer-maven-plugin/src/main/resources/modernizer.xml +++ b/modernizer-maven-plugin/src/main/resources/modernizer.xml @@ -1289,6 +1289,30 @@ violation names use the same format that javap emits. Prefer java.nio.file.Files.newBufferedReader.<init>(Paths.get(String), Charset) + + java/io/FileWriter."<init>":(Ljava/io/File;)V + 7 + Prefer java.nio.file.Files.newBufferedWriter.<init>(Path) + + + + java/io/FileWriter."<init>":(Ljava/io/File;Z)V + 7 + Prefer java.nio.file.Files.newBufferedWriter.<init>(Path, java.nio.file.StandardOpenOption.CREATE, java.nio.file.StandardOpenOption.WRITE) + + + + java/io/FileWriter."<init>":(Ljava/lang/String;)V + 7 + Prefer java.nio.file.Files.newBufferedWriter.<init>(Paths.get(String)) + + + + java/io/FileWriter."<init>":(Ljava/lang/String;Z)V + 7 + Prefer java.nio.file.Files.newBufferedWriter.<init>(Paths.get(String), java.nio.file.StandardOpenOption.CREATE, java.nio.file.StandardOpenOption.WRITE) + + java/io/FileWriter."<init>":(Ljava/io/File;)V 11 @@ -1313,6 +1337,30 @@ violation names use the same format that javap emits. Prefer java.io.FileWriter.<init>(String, Charset, boolean) + + java/io/FileWriter."<init>":(Ljava/io/File;Ljava/nio/charset/Charset;)V + 11 + Prefer java.nio.file.Files.newBufferedWriter.<init>(Path, Charset) + + + + java/io/FileWriter."<init>":(Ljava/io/File;Ljava/nio/charset/Charset;Z)V + 11 + Prefer java.nio.file.Files.newBufferedWriter.<init>(Path, Charset, java.nio.file.StandardOpenOption.CREATE, java.nio.file.StandardOpenOption.WRITE) + + + + java/io/FileWriter."<init>":(Ljava/lang/String;Ljava/nio/charset/Charset;)V + 11 + Prefer java.nio.file.Files.newBufferedWriter.<init>(Paths.get(String), Charset) + + + + java/io/FileWriter."<init>":(Ljava/lang/String;Ljava/nio/charset/Charset;Z)V + 11 + Prefer java.nio.file.Files.newBufferedWriter.<init>(Paths.get(String), Charset, java.nio.file.StandardOpenOption.CREATE, java.nio.file.StandardOpenOption.WRITE) + + org/apache/commons/lang3/StringUtils.join:(Ljava/lang/Iterable;C)Ljava/lang/String; 8