From 804b23811b6243bf4d8405c36720b0819edd27c9 Mon Sep 17 00:00:00 2001 From: Dave Miller Date: Tue, 2 Feb 2016 08:43:52 -0800 Subject: [PATCH] Fix lint for D2880851 Reviewed By: andreicoman11 Differential Revision: D2890474 fb-gh-sync-id: 2d6b2a9a5caa1964646706ba75a5fae8350d0ee5 --- .../com/facebook/react/views/textinput/ReactEditText.java | 2 +- .../facebook/react/views/textinput/ReactTextInputManager.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java index 52a18a40c..58e3e5a56 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java @@ -70,7 +70,7 @@ public class ReactEditText extends EditText { private @Nullable SelectionWatcher mSelectionWatcher; private final InternalKeyListener mKeyListener; - private static KeyListener sKeyListener = QwertyKeyListener.getInstanceForFullKeyboard(); + private static final KeyListener sKeyListener = QwertyKeyListener.getInstanceForFullKeyboard(); public ReactEditText(Context context) { super(context); diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java index a9b071c72..043a36833 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java @@ -258,8 +258,8 @@ public class ReactTextInputManager extends list.add(currentFilters[i]); } } - if (list.size() > 0) { - newFilters = (InputFilter[])list.toArray(); + if (!list.isEmpty()) { + newFilters = (InputFilter[]) list.toArray(); } } } else {