diff options
| author | Po Lu | 2023-02-24 22:25:48 +0800 |
|---|---|---|
| committer | Po Lu | 2023-02-24 22:25:48 +0800 |
| commit | ea74f3c0678d0729a8d6307e35c2d228f665afa3 (patch) | |
| tree | 123796d853d714bed9662301cff3c1a4a0baacef /java | |
| parent | 4ff3904e3c2767b2840624db68b5cf9db2246d3b (diff) | |
| download | emacs-ea74f3c0678d0729a8d6307e35c2d228f665afa3.tar.gz emacs-ea74f3c0678d0729a8d6307e35c2d228f665afa3.zip | |
Improve Android configury
* configure.ac (JAVA_PUSH_LINT): New macro.
(JAVAFLAGS): New variable. Check for various lint flags and
macros and enable them.
* java/Makefile.in (ANDROID_ABI):
* java/org/gnu/emacs/EmacsSdk7FontDriver.java: Remove compiler
warning.
Diffstat (limited to 'java')
| -rw-r--r-- | java/Makefile.in | 5 | ||||
| -rw-r--r-- | java/org/gnu/emacs/EmacsSdk7FontDriver.java | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/java/Makefile.in b/java/Makefile.in index af44d551701..7ba05f6c9a3 100644 --- a/java/Makefile.in +++ b/java/Makefile.in | |||
| @@ -40,10 +40,7 @@ ANDROID_JAR = @ANDROID_JAR@ | |||
| 40 | ANDROID_ABI = @ANDROID_ABI@ | 40 | ANDROID_ABI = @ANDROID_ABI@ |
| 41 | ANDROID_SDK_18_OR_EARLIER = @ANDROID_SDK_18_OR_EARLIER@ | 41 | ANDROID_SDK_18_OR_EARLIER = @ANDROID_SDK_18_OR_EARLIER@ |
| 42 | ANDROID_SDK_8_OR_EARLIER = @ANDROID_SDK_8_OR_EARLIER@ | 42 | ANDROID_SDK_8_OR_EARLIER = @ANDROID_SDK_8_OR_EARLIER@ |
| 43 | 43 | JAVAFLAGS = @JAVAFLAGS@ | |
| 44 | WARN_JAVAFLAGS = -Xlint:deprecation | ||
| 45 | JAVAFLAGS = -classpath "$(ANDROID_JAR):." -target 1.7 -source 1.7 \ | ||
| 46 | $(WARN_JAVAFLAGS) | ||
| 47 | 44 | ||
| 48 | # Android 4.3 and earlier require Emacs to be signed with a different | 45 | # Android 4.3 and earlier require Emacs to be signed with a different |
| 49 | # digital signature algorithm. | 46 | # digital signature algorithm. |
diff --git a/java/org/gnu/emacs/EmacsSdk7FontDriver.java b/java/org/gnu/emacs/EmacsSdk7FontDriver.java index a964cadb74c..ba92d4cef49 100644 --- a/java/org/gnu/emacs/EmacsSdk7FontDriver.java +++ b/java/org/gnu/emacs/EmacsSdk7FontDriver.java | |||
| @@ -325,7 +325,7 @@ public class EmacsSdk7FontDriver extends EmacsFontDriver | |||
| 325 | list.add (new Sdk7FontEntity (typefaceList[i])); | 325 | list.add (new Sdk7FontEntity (typefaceList[i])); |
| 326 | } | 326 | } |
| 327 | 327 | ||
| 328 | return (FontEntity[]) list.toArray (new FontEntity[0]); | 328 | return list.toArray (new FontEntity[0]); |
| 329 | } | 329 | } |
| 330 | 330 | ||
| 331 | @Override | 331 | @Override |