aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/event/DeadKeyCombiner.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-07-29 09:31:58 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-07-24 16:04:26 +0000
commit3c7cb5234fa33f67a4029d6e858ccccf5c7feeb3 (patch)
tree4be23db6811899d7fc826cb6f908f153e15c248d /java/src/com/android/inputmethod/event/DeadKeyCombiner.java
parent3042452170e9d8bd2d80abd7514b40b1974741f7 (diff)
parent60a2cd8ac439bf41bfddc5f5f339feda7c7ff175 (diff)
downloadlatinime-3c7cb5234fa33f67a4029d6e858ccccf5c7feeb3.tar.gz
latinime-3c7cb5234fa33f67a4029d6e858ccccf5c7feeb3.tar.xz
latinime-3c7cb5234fa33f67a4029d6e858ccccf5c7feeb3.zip
Merge "[HW7.5] Introduce the @Nonnull annotation" into lmp-dev
Diffstat (limited to 'java/src/com/android/inputmethod/event/DeadKeyCombiner.java')
-rw-r--r--java/src/com/android/inputmethod/event/DeadKeyCombiner.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/event/DeadKeyCombiner.java b/java/src/com/android/inputmethod/event/DeadKeyCombiner.java
index 342f499c9..d816247d8 100644
--- a/java/src/com/android/inputmethod/event/DeadKeyCombiner.java
+++ b/java/src/com/android/inputmethod/event/DeadKeyCombiner.java
@@ -23,6 +23,8 @@ import com.android.inputmethod.latin.Constants;
import java.util.ArrayList;
+import javax.annotation.Nonnull;
+
/**
* A combiner that handles dead keys.
*/
@@ -31,6 +33,7 @@ public class DeadKeyCombiner implements Combiner {
final StringBuilder mDeadSequence = new StringBuilder();
@Override
+ @Nonnull
public Event processEvent(final ArrayList<Event> previousEvents, final Event event) {
if (TextUtils.isEmpty(mDeadSequence)) {
if (event.isDead()) {