Skip to content

Commit

Permalink
fixup! Add violation for FileReader
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarg authored and gaul committed Dec 17, 2024
1 parent 507d6c0 commit f2f1b8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modernizer-maven-plugin/src/main/resources/modernizer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1278,13 +1278,13 @@ violation names use the same format that javap emits.
</violation>

<violation>
<name>java/io/FileReader."&lt;init&gt;":(Ljava/io/File;Ljava/nio/Charset;)V</name>
<name>java/io/FileReader."&lt;init&gt;":(Ljava/io/File;Ljava/nio/charset/Charset;)V</name>
<version>11</version>
<comment>Prefer java.nio.file.Files.newBufferedReader.&lt;init&gt;(Path, Charset)</comment>
</violation>

<violation>
<name>java/io/FileReader."&lt;init&gt;":(Ljava/lang/String;Ljava/nio/Charset;)V</name>
<name>java/io/FileReader."&lt;init&gt;":(Ljava/lang/String;Ljava/nio/charset/Charset;)V</name>
<version>11</version>
<comment>Prefer java.nio.file.Files.newBufferedReader.&lt;init&gt;(Paths.get(String), Charset)</comment>
</violation>
Expand Down

0 comments on commit f2f1b8c

Please sign in to comment.