Skip to content

Commit

Permalink
Do not ask people to stick with java.io.FileWriter in Java 11 when as…
Browse files Browse the repository at this point in the history
…king people to switch to java.nio.file.Files.newBufferedWriter in Java 7
  • Loading branch information
mkarg committed Dec 12, 2024
1 parent abf9f68 commit 595190b
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions modernizer-maven-plugin/src/main/resources/modernizer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1313,30 +1313,6 @@ violation names use the same format that javap emits.
<comment>Prefer java.nio.file.Files.newBufferedWriter.&lt;init&gt;(Paths.get(String), java.nio.file.StandardOpenOption.CREATE, java.nio.file.StandardOpenOption.WRITE)</comment>
</violation>

<violation>
<name>java/io/FileWriter."&lt;init&gt;":(Ljava/io/File;)V</name>
<version>11</version>
<comment>Prefer java.io.FileWriter.&lt;init&gt;(File, Charset)</comment>
</violation>

<violation>
<name>java/io/FileWriter."&lt;init&gt;":(Ljava/io/File;Z)V</name>
<version>11</version>
<comment>Prefer java.io.FileWriter.&lt;init&gt;(File, Charset, boolean)</comment>
</violation>

<violation>
<name>java/io/FileWriter."&lt;init&gt;":(Ljava/lang/String;)V</name>
<version>11</version>
<comment>Prefer java.io.FileWriter.&lt;init&gt;(String, Charset)</comment>
</violation>

<violation>
<name>java/io/FileWriter."&lt;init&gt;":(Ljava/lang/String;Z)V</name>
<version>11</version>
<comment>Prefer java.io.FileWriter.&lt;init&gt;(String, Charset, boolean)</comment>
</violation>

<violation>
<name>java/io/FileWriter."&lt;init&gt;":(Ljava/io/File;Ljava/nio/charset/Charset;)V</name>
<version>11</version>
Expand Down

0 comments on commit 595190b

Please sign in to comment.