From: Reimar Döffinger Date: Mon, 13 Apr 2020 12:49:33 +0000 (+0200) Subject: Enable all compiler warnings (-Xlint:all). X-Git-Url: http://gitweb.fperrin.net/?p=DictionaryPC.git;a=commitdiff_plain;h=31218ade21839194c5cbbf7e5238f3013b4b196f Enable all compiler warnings (-Xlint:all). --- diff --git a/compile.sh b/compile.sh index 422036c..28a6b8e 100755 --- a/compile.sh +++ b/compile.sh @@ -33,4 +33,4 @@ fi mkdir -p bin # -encoding is just a work around for user that still run systems # with non-UTF8 locales -javac -encoding UTF-8 -g -d bin/ ../Dictionary/Util/src/com/hughes/util/*.java ../Dictionary/Util/src/com/hughes/util/raf/*.java ../Dictionary/src/com/hughes/android/dictionary/DictionaryInfo.java ../Dictionary/src/com/hughes/android/dictionary/engine/*.java ../Dictionary/src/com/hughes/android/dictionary/C.java src/com/hughes/util/*.java src/com/hughes/android/dictionary/*.java src/com/hughes/android/dictionary/*/*.java src/com/hughes/android/dictionary/*/*/*.java -classpath "$ICU4J:$JUNIT:$XERCES:$COMMONS:$COMMONS_COMPRESS" +javac -Xlint:all -encoding UTF-8 -g -d bin/ ../Dictionary/Util/src/com/hughes/util/*.java ../Dictionary/Util/src/com/hughes/util/raf/*.java ../Dictionary/src/com/hughes/android/dictionary/DictionaryInfo.java ../Dictionary/src/com/hughes/android/dictionary/engine/*.java ../Dictionary/src/com/hughes/android/dictionary/C.java src/com/hughes/util/*.java src/com/hughes/android/dictionary/*.java src/com/hughes/android/dictionary/*/*.java src/com/hughes/android/dictionary/*/*/*.java -classpath "$ICU4J:$JUNIT:$XERCES:$COMMONS:$COMMONS_COMPRESS" diff --git a/src/com/hughes/android/dictionary/SerializeCollatorTest.java b/src/com/hughes/android/dictionary/SerializeCollatorTest.java index 845bdba..66451ff 100644 --- a/src/com/hughes/android/dictionary/SerializeCollatorTest.java +++ b/src/com/hughes/android/dictionary/SerializeCollatorTest.java @@ -28,7 +28,7 @@ public class SerializeCollatorTest { */ public static void main(String[] args) throws IOException { File temp = File.createTempFile("temp", null); - final Comparator c = Language.de.getCollator(); + final Comparator c = Language.de.getCollator(); //FileUtil.writeObject(c, temp); }