From 595190b7efa26f71592bd01d53b197377305019e Mon Sep 17 00:00:00 2001 From: Markus KARG Date: Thu, 12 Dec 2024 15:21:02 +0000 Subject: [PATCH] Do not ask people to stick with java.io.FileWriter in Java 11 when asking people to switch to java.nio.file.Files.newBufferedWriter in Java 7 --- .../src/main/resources/modernizer.xml | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/modernizer-maven-plugin/src/main/resources/modernizer.xml b/modernizer-maven-plugin/src/main/resources/modernizer.xml index 07c72cf..cdfdfed 100644 --- a/modernizer-maven-plugin/src/main/resources/modernizer.xml +++ b/modernizer-maven-plugin/src/main/resources/modernizer.xml @@ -1313,30 +1313,6 @@ violation names use the same format that javap emits. 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 - Prefer java.io.FileWriter.<init>(File, Charset) - - - - java/io/FileWriter."<init>":(Ljava/io/File;Z)V - 11 - Prefer java.io.FileWriter.<init>(File, Charset, boolean) - - - - java/io/FileWriter."<init>":(Ljava/lang/String;)V - 11 - Prefer java.io.FileWriter.<init>(String, Charset) - - - - java/io/FileWriter."<init>":(Ljava/lang/String;Z)V - 11 - Prefer java.io.FileWriter.<init>(String, Charset, boolean) - - java/io/FileWriter."<init>":(Ljava/io/File;Ljava/nio/charset/Charset;)V 11