From 7f545a57c987862d55966ac08ef64cfe0b9f51e4 Mon Sep 17 00:00:00 2001 From: Ken Wakasa Date: Wed, 30 Jul 2014 13:01:39 +0900 Subject: [HW7.5] Introduce the @Nonnull annotation (take 2) Change-Id: I05512b5434810046c8b72d6bb41567b6cd8b9d6e --- java/src/com/android/inputmethod/event/DeadKeyCombiner.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'java/src/com/android/inputmethod/event/DeadKeyCombiner.java') 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 previousEvents, final Event event) { if (TextUtils.isEmpty(mDeadSequence)) { if (event.isDead()) { -- cgit v1.2.3-83-g751a