Merge branch 'master' into master

pull/1712/head
648540858 2024-12-09 14:51:32 +08:00 committed by GitHub
commit 4591881c77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -15,6 +15,7 @@ import java.io.BufferedReader;
import java.io.File; import java.io.File;
import java.io.InputStream; import java.io.InputStream;
import java.io.InputStreamReader; import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files; import java.nio.file.Files;
/** /**
@ -53,8 +54,8 @@ public class CivilCodeFileConf implements CommandLineRunner {
} }
inputStream = Files.newInputStream(civilCodeFile.toPath()); inputStream = Files.newInputStream(civilCodeFile.toPath());
} }
BufferedReader inputStreamReader = new BufferedReader(new InputStreamReader(inputStream,"UTF-8")); BufferedReader inputStreamReader = new BufferedReader(new InputStreamReader(inputStream, StandardCharsets.UTF_8));
int index = -1; int index = -1;
String line; String line;
while ((line = inputStreamReader.readLine()) != null) { while ((line = inputStreamReader.readLine()) != null) {