1
mirror of https://github.com/carm-outsource/TimeReward.git synced 2026-06-05 01:08:10 +08:00

[1.2.1] 更换使用Java8构建

This commit is contained in:
2022-03-02 20:28:13 +08:00
parent 17d99fb1c0
commit 871ba8d643
2 changed files with 3 additions and 1 deletions
@@ -18,7 +18,7 @@ public class JarResourceUtils {
public static @Nullable String[] readResource(@Nullable InputStream resourceStream) {
if (resourceStream == null) return null;
try (Scanner scanner = new Scanner(resourceStream, StandardCharsets.UTF_8)) {
try (Scanner scanner = new Scanner(resourceStream, StandardCharsets.UTF_8.name())) {
List<String> contents = new ArrayList<>();
while (scanner.hasNextLine()) {
contents.add(scanner.nextLine());