From afa3bbe3626fd42df2fdc6ebfb02e7e58400fd4e Mon Sep 17 00:00:00 2001 From: HaHaWTH Date: Sun, 10 Mar 2024 15:23:54 +0800 Subject: [PATCH] Fix typo --- src/main/java/io/wdsj/asw/method/ExternalWordAllow.java | 2 +- src/main/java/io/wdsj/asw/method/ExternalWordDeny.java | 2 +- src/main/java/io/wdsj/asw/method/OnlineWordDeny.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/io/wdsj/asw/method/ExternalWordAllow.java b/src/main/java/io/wdsj/asw/method/ExternalWordAllow.java index 858a70f..f160694 100644 --- a/src/main/java/io/wdsj/asw/method/ExternalWordAllow.java +++ b/src/main/java/io/wdsj/asw/method/ExternalWordAllow.java @@ -37,7 +37,7 @@ public List allow() { List lines = Files.readAllLines(file.toPath()); totalList.addAll(lines); } - if (files.size() > 0) AdvancedSensitiveWords.getInstance().getLogger().info("Loaded " + files.size() + " external allow files."); + if (files.size() > 0) AdvancedSensitiveWords.getInstance().getLogger().info("Loaded " + files.size() + " external allow file(s)."); } catch (IOException e) { e.printStackTrace(); return Collections.emptyList(); diff --git a/src/main/java/io/wdsj/asw/method/ExternalWordDeny.java b/src/main/java/io/wdsj/asw/method/ExternalWordDeny.java index 69c7541..330bb82 100644 --- a/src/main/java/io/wdsj/asw/method/ExternalWordDeny.java +++ b/src/main/java/io/wdsj/asw/method/ExternalWordDeny.java @@ -37,7 +37,7 @@ public List deny() { List lines = Files.readAllLines(file.toPath()); totalList.addAll(lines); } - if (files.size() > 0) AdvancedSensitiveWords.getInstance().getLogger().info("Loaded " + files.size() + " external deny files."); + if (files.size() > 0) AdvancedSensitiveWords.getInstance().getLogger().info("Loaded " + files.size() + " external deny file(s)."); } catch (IOException e) { e.printStackTrace(); return Collections.emptyList(); diff --git a/src/main/java/io/wdsj/asw/method/OnlineWordDeny.java b/src/main/java/io/wdsj/asw/method/OnlineWordDeny.java index cc8f927..8357bf7 100644 --- a/src/main/java/io/wdsj/asw/method/OnlineWordDeny.java +++ b/src/main/java/io/wdsj/asw/method/OnlineWordDeny.java @@ -40,7 +40,7 @@ public List deny() { AdvancedSensitiveWords.getInstance().getLogger().warning("Failed to load online words list."); return Collections.emptyList(); } - AdvancedSensitiveWords.getInstance().getLogger().info("Loaded " + lines.size() + " words online."); + AdvancedSensitiveWords.getInstance().getLogger().info("Loaded " + lines.size() + " word(s) online."); return lines; } }