From f8e02ef0aadd9319362fa41e1b3f2bb24f192de2 Mon Sep 17 00:00:00 2001 From: The-Lum <86879521+The-Lum@users.noreply.github.com> Date: Tue, 6 Jul 2021 13:01:39 +0200 Subject: [PATCH 1/2] Rename Warning to CypherWarning Rename `Warning` to `CypherWarning`, for more readability on the stdout/stderror --- src/net/sourceforge/plantuml/utils/Cypher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/sourceforge/plantuml/utils/Cypher.java b/src/net/sourceforge/plantuml/utils/Cypher.java index 6dd696927..000cbf421 100644 --- a/src/net/sourceforge/plantuml/utils/Cypher.java +++ b/src/net/sourceforge/plantuml/utils/Cypher.java @@ -131,7 +131,7 @@ public class Cypher { public void addException(String word) { word = word.toLowerCase(); if (words.contains(word)) { - System.err.println("Warning:" + word); + System.err.println("CypherWarning:" + word); words.remove(word); } except.add(word); From 275b9b33f5dc7ef6960c15fdad444664b1768db1 Mon Sep 17 00:00:00 2001 From: The-Lum <86879521+The-Lum@users.noreply.github.com> Date: Tue, 6 Jul 2021 13:27:46 +0200 Subject: [PATCH 2/2] Suppress of `then` word to avoid warning of Cypher Suppress of `then` word to avoid warning of Cypher: [Observed on V1.2021.7] ``` >java -jar plantuml.jar -stdrpt -cypher Warning:then ``` or: ``` java -jar plantuml.jar -v -cypher (0.000 - 254 Mo) 248 Mo - SecurityProfile LEGACY (0.014 - 254 Mo) 247 Mo - PlantUML Version 1.2021.7 (0.014 - 254 Mo) 247 Mo - GraphicsEnvironment.isHeadless() false (0.014 - 254 Mo) 247 Mo - Forcing resource load on OpenJdk Warning:then (0.372 - 254 Mo) 240 Mo - Found 0 files ``` --- src/net/sourceforge/plantuml/utils/words.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/net/sourceforge/plantuml/utils/words.txt b/src/net/sourceforge/plantuml/utils/words.txt index d2b1d13aa..2b02b41e2 100644 --- a/src/net/sourceforge/plantuml/utils/words.txt +++ b/src/net/sourceforge/plantuml/utils/words.txt @@ -1898,7 +1898,6 @@ thankful that their them -then there these they @@ -2115,4 +2114,4 @@ youthful zeal zenith zest -zippy \ No newline at end of file +zippy