From c91591b98792ffbd0826a4bda7304d63a52f0479 Mon Sep 17 00:00:00 2001 From: Ahmed El-Helw Date: Mon, 11 Apr 2016 14:10:37 -0700 Subject: [PATCH] Cleanup React comments and unused imports Summary: Fix some typos in comments. Reviewed By: astreet Differential Revision: D3161278 fb-gh-sync-id: 11612487aa5fee5463942d3467f46633ccd9db15 fbshipit-source-id: 11612487aa5fee5463942d3467f46633ccd9db15 --- .../java/com/facebook/react/uimanager/ReactCompoundView.java | 1 - .../com/facebook/react/views/view/ReactClippingViewGroup.java | 2 +- .../main/java/com/facebook/react/views/view/ReactViewGroup.java | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundView.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundView.java index 13abb16e2..980e35d62 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundView.java @@ -9,7 +9,6 @@ package com.facebook.react.uimanager; -import android.view.MotionEvent; import android.view.View; /** diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactClippingViewGroup.java b/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactClippingViewGroup.java index 37482c2bc..bf077d8e8 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactClippingViewGroup.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactClippingViewGroup.java @@ -28,7 +28,7 @@ public interface ReactClippingViewGroup { /** * Notify view that clipping area may have changed and it should recalculate the list of children - * that shold be attached/detached. This method should be called only when property + * that should be attached/detached. This method should be called only when property * {@code removeClippedSubviews} is set to {@code true} on a view. * * CAUTION: Views are responsible for calling {@link #updateClippingRect} on it's children. This diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java b/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java index 76fa422c2..63ceac761 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java @@ -80,7 +80,7 @@ public class ReactViewGroup extends ViewGroup implements // temporary optimization/hack that is mainly applicable to the large list of images. The way // it's implemented is that we store an additional array of children in view node. We selectively // remove some of the views (detach) from it while still storing them in that additional array. - // We override all possible add methods for {@link ViewGroup} so that we can controll this process + // We override all possible add methods for {@link ViewGroup} so that we can control this process // whenever the option is set. We also override {@link ViewGroup#getChildAt} and // {@link ViewGroup#getChildCount} so those methods may return views that are not attached. // This is risky but allows us to perform a correct cleanup in {@link NativeViewHierarchyManager}.