aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/event/DeadKeyCombiner.java
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2014-07-30 16:58:00 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-07-30 16:58:00 +0000
commitec8472b5f5e478ba4eb830a7603da9c5a4637461 (patch)
tree25add4320dd2185e8318cea03492ad26447de945 /java/src/com/android/inputmethod/event/DeadKeyCombiner.java
parent14d985bdbdfd4a237add1009912a6920573c1a9d (diff)
parent7f545a57c987862d55966ac08ef64cfe0b9f51e4 (diff)
downloadlatinime-ec8472b5f5e478ba4eb830a7603da9c5a4637461.tar.gz
latinime-ec8472b5f5e478ba4eb830a7603da9c5a4637461.tar.xz
latinime-ec8472b5f5e478ba4eb830a7603da9c5a4637461.zip
am 7f545a57: [HW7.5] Introduce the @Nonnull annotation (take 2)
* commit '7f545a57c987862d55966ac08ef64cfe0b9f51e4': [HW7.5] Introduce the @Nonnull annotation (take 2)
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()) {