File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
modernizer-maven-plugin/src/main/java/org/gaul/modernizer_maven_plugin Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 2121import java .io .IOException ;
2222import java .io .InputStream ;
2323import java .io .InputStreamReader ;
24- import java .nio .charset .Charset ;
24+ import java .nio .charset .StandardCharsets ;
2525import java .util .ArrayList ;
2626import java .util .Collection ;
2727import java .util .Collections ;
3333import org .objectweb .asm .Opcodes ;
3434
3535final class Utils {
36- static final Charset UTF_8 = Charset .forName ("UTF-8" );
3736 static final int ASM_API = Opcodes .ASM9 ;
3837
3938 static <T > T checkNotNull (T reference ) {
@@ -77,7 +76,7 @@ static void closeQuietly(Closeable closeable) {
7776 static Collection <String > readAllLines (InputStream is ) throws IOException {
7877 Collection <String > lines = new ArrayList <String >();
7978 BufferedReader reader = new BufferedReader (new InputStreamReader (is ,
80- UTF_8 ));
79+ StandardCharsets . UTF_8 ));
8180 while (true ) {
8281 String line = reader .readLine ();
8382 if (line == null ) {
You can’t perform that action at this time.
0 commit comments