aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-10-23 07:54:35 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-23 07:54:35 +0000
commit77e6afd1f243eb05936a00f54f6839ecacddd35c (patch)
treebcd93f81f396556ddaa1a765fa92c2011f9bcf99 /java/src/com/android/inputmethod/latin/LatinIME.java
parent3af7fd0a913d754593c231eb8ba0236b47322f50 (diff)
parentd3a4c5132422b189c8dbb94dbbe84a9b9761b0a8 (diff)
downloadlatinime-77e6afd1f243eb05936a00f54f6839ecacddd35c.tar.gz
latinime-77e6afd1f243eb05936a00f54f6839ecacddd35c.tar.xz
latinime-77e6afd1f243eb05936a00f54f6839ecacddd35c.zip
am d3a4c513: Fix Javadoc and null analysis related warnings
* commit 'd3a4c5132422b189c8dbb94dbbe84a9b9761b0a8': Fix Javadoc and null analysis related warnings
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index e7a91c521..cd17ada89 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1419,7 +1419,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
// This method is public for testability of LatinIME, but also in the future it should
// completely replace #onCodeInput.
- public void onEvent(final Event event) {
+ public void onEvent(@Nonnull final Event event) {
if (Constants.CODE_SHORTCUT == event.mKeyCode) {
mSubtypeSwitcher.switchToShortcutIME(this);
}
@@ -1434,6 +1434,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
// A helper method to split the code point and the key code. Ultimately, they should not be
// squashed into the same variable, and this method should be removed.
// public for testing, as we don't want to copy the same logic into test code
+ @Nonnull
public static Event createSoftwareKeypressEvent(final int keyCodeOrCodePoint, final int keyX,
final int keyY, final boolean isKeyRepeat) {
final int keyCode;