Skip to content

Commit d2f0abd

Browse files
swashcapfacebook-github-bot
authored andcommitted
Fix Android comment and docblock typos
Summary: :wave: Hello! Thanks for react-native, it’s a great project. I was digging into the Android implementation in _ReactAndroid_ and noticed a couple typos in the documentation. I went through and tried to fix all the typos I could find using [aspell](http://aspell.net). Not applicable: these changes are only to comments, and CI should be skipped. [ANDROID][ENHANCEMENT][*] - Correct comment and docblock typos Closes facebook#17049 Differential Revision: D6472182 Pulled By: shergin fbshipit-source-id: 7e62cab118609596b483d1cf16c3abf651d6753b
1 parent ba60751 commit d2f0abd

36 files changed

+37
-37
lines changed

ReactAndroid/src/androidTest/java/com/facebook/react/testing/network/NetworkRecordingModuleMock.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
/**
2626
* Mock Networking module that records last request received by {@link #sendRequest} method and
27-
* returns reponse code and body that should be set with {@link #setResponse}
27+
* returns response code and body that should be set with {@link #setResponse}
2828
*/
2929
@ReactModule(name = "Networking", canOverrideExistingModule = true)
3030
public class NetworkRecordingModuleMock extends ReactContextBaseJavaModule {

ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystMultitouchHandlingTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void testMultitouchEvents() throws InterruptedException {
6868
assertEquals(-1, endEventIndex);
6969
endEventIndex = i;
7070
} else if (call.equals("move;2")) {
71-
// this will happen more than once, let's just capture the last occurence
71+
// this will happen more than once, let's just capture the last occurrence
7272
moveWithBothPointersEventIndex = i;
7373
}
7474
}

ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystNativeJSToJavaParametersTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* Integration test to verify passing various types of parameters from JS to Java works
4646
*
4747
* TODO: we should run these tests with isBlockingSynchronousMethod = true as well,
48-
* since they currrently use a completely different codepath
48+
* since they currently use a completely different codepath
4949
*/
5050
@Ignore("Fix prop types and view managers.")
5151
public class CatalystNativeJSToJavaParametersTestCase extends ReactIntegrationTestCase {

ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystTouchBubblingTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
* | +----------------------------------------------------------------------------------+ |
4545
* +---------------------------------------------------------------------------------------+
4646
*
47-
* Then in each test case we eiter tap the center of a particular view (from A to E) or we start
47+
* Then in each test case we either tap the center of a particular view (from A to E) or we start
4848
* a gesture in one view and end it with another.
4949
* View with names in brackets (e.g. {D}) have touch handlers set whereas all other views are not
5050
* declared to handler touch events.

ReactAndroid/src/androidTest/java/com/facebook/react/tests/JSResponderTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* Test case to verify that JSResponder flow work correctly.
1919
*
2020
* In a single test case scenario we have a view with pan gesture recognizer containing a scrollview
21-
* We werify that by vertical drags affects a scrollview while horizontal drags are suppose to
21+
* We verify that by vertical drags affects a scrollview while horizontal drags are suppose to
2222
* be recognized by pan responder and setJSResponder should be triggered resulting in scrollview
2323
* events being intercepted.
2424
*/

ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public ReactInstanceManagerBuilder setJSBundleFile(String jsBundleFile) {
9797

9898
/**
9999
* Bundle loader to use when setting up JS environment. This supersedes
100-
* prior invcations of {@link setJSBundleFile} and {@link setBundleAssetName}.
100+
* prior invocations of {@link setJSBundleFile} and {@link setBundleAssetName}.
101101
*
102102
* Example: {@code JSBundleLoader.createFileLoader(application, bundleFile)}
103103
*/

ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
* that coordinates all the action: {@link NativeAnimatedNodesManager}. Since all the methods from
7070
* {@link NativeAnimatedNodesManager} need to be called from the UI thread, we we create a queue of
7171
* animated graph operations that is then enqueued to be executed in the UI Thread at the end of the
72-
* batch of JS->native calls (similarily to how it's handled in {@link UIManagerModule}). This
72+
* batch of JS->native calls (similarly to how it's handled in {@link UIManagerModule}). This
7373
* isolates us from the problems that may be caused by concurrent updates of animated graph while UI
7474
* thread is "executing" the animation loop.
7575
*/

ReactAndroid/src/main/java/com/facebook/react/animation/AbstractFloatPairPropertyUpdater.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
/**
1515
* Base class for {@link AnimationPropertyUpdater} subclasses that updates a pair of float property
16-
* values. It helps to handle convertion from animation progress to the actual values as
16+
* values. It helps to handle conversion from animation progress to the actual values as
1717
* well as the quite common case when no starting value is provided.
1818
*/
1919
public abstract class AbstractFloatPairPropertyUpdater implements AnimationPropertyUpdater {

ReactAndroid/src/main/java/com/facebook/react/animation/AbstractSingleFloatProperyUpdater.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
/**
1515
* Base class for {@link AnimationPropertyUpdater} subclasses that updates a single float property
16-
* value. It helps to handle convertion from animation progress to the actual value as well as the
16+
* value. It helps to handle conversion from animation progress to the actual value as well as the
1717
* quite common case when no starting value is provided.
1818
*/
1919
public abstract class AbstractSingleFloatProperyUpdater implements AnimationPropertyUpdater {

ReactAndroid/src/main/java/com/facebook/react/animation/AnimationPropertyUpdater.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public interface AnimationPropertyUpdater {
3737

3838
/**
3939
* This method will be called at the end of animation. It should be used to set the final values
40-
* for animated properties in order to avoid floating point inacurracy calculated in
40+
* for animated properties in order to avoid floating point inaccuracy calculated in
4141
* {@link #onUpdate} by passing value close to 1.0 or in a case some frames got dropped.
4242
*
4343
* @param view view to update property

0 commit comments

Comments
 (0)