aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/RichInputMethodManager.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-10-22 14:04:07 +0900
committerTadashi G. Takaoka <takaoka@google.com>2014-10-23 09:58:42 +0900
commitd3a4c5132422b189c8dbb94dbbe84a9b9761b0a8 (patch)
tree0f2e5b9e4dfb35bc1794033621943ec1fe607f52 /java/src/com/android/inputmethod/latin/RichInputMethodManager.java
parent924b8fd0fa456a084358ce916ac2b637b915946e (diff)
downloadlatinime-d3a4c5132422b189c8dbb94dbbe84a9b9761b0a8.tar.gz
latinime-d3a4c5132422b189c8dbb94dbbe84a9b9761b0a8.tar.xz
latinime-d3a4c5132422b189c8dbb94dbbe84a9b9761b0a8.zip
Fix Javadoc and null analysis related warnings
This CL also adds @SuppressWarning("unused" to java-overridable package. Bug: 18003991 Change-Id: If70527e30654384705d7a814f5efd181d9f539e1
Diffstat (limited to 'java/src/com/android/inputmethod/latin/RichInputMethodManager.java')
-rw-r--r--java/src/com/android/inputmethod/latin/RichInputMethodManager.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/RichInputMethodManager.java b/java/src/com/android/inputmethod/latin/RichInputMethodManager.java
index 113a20483..894c115d8 100644
--- a/java/src/com/android/inputmethod/latin/RichInputMethodManager.java
+++ b/java/src/com/android/inputmethod/latin/RichInputMethodManager.java
@@ -38,6 +38,8 @@ import java.util.Collections;
import java.util.HashMap;
import java.util.List;
+import javax.annotation.Nonnull;
+
/**
* Enrichment class for InputMethodManager to simplify interaction and add functionality.
*/
@@ -301,12 +303,13 @@ public class RichInputMethodManager {
return INDEX_NOT_FOUND;
}
+ @Nonnull
public InputMethodSubtype getCurrentRawSubtype() {
return mImmWrapper.mImm.getCurrentInputMethodSubtype();
}
public RichInputMethodSubtype createCurrentRichInputMethodSubtype(
- final InputMethodSubtype rawSubtype) {
+ @Nonnull final InputMethodSubtype rawSubtype) {
return AdditionalFeaturesSettingUtils.createRichInputMethodSubtype(this, rawSubtype,
mContext);
}