Daily arc lint --take GOOGLEJAVAFORMAT

Summary:
Changelog:
[Internal]

Differential Revision: D19875191

fbshipit-source-id: 3a1e22a4342d523f556c847a9fa780a898a96771
This commit is contained in:
Andres Suarez
2020-02-13 05:50:42 -08:00
committed by Facebook Github Bot
parent dc6c57ce0d
commit ff22722e47
6 changed files with 13 additions and 20 deletions
@@ -7,26 +7,23 @@
package com.facebook.react.bridge;
import static com.facebook.react.bridge.Arguments.fromBundle;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.runner.AndroidJUnit4;
import com.facebook.soloader.SoLoader;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import static com.facebook.react.bridge.Arguments.fromBundle;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
@RunWith(AndroidJUnit4.class)
public class ArgumentsTest {
@@ -42,9 +39,9 @@ public class ArgumentsTest {
}
/**
* When passing a bundle via {@link Intent} extras, it gets parceled and unparceled.
* Any array of bundles will return as an array of {@link Parcelable} instead. This test
* verifies that {@link Arguments#fromArray} handles this situation correctly.
* When passing a bundle via {@link Intent} extras, it gets parceled and unparceled. Any array of
* bundles will return as an array of {@link Parcelable} instead. This test verifies that {@link
* Arguments#fromArray} handles this situation correctly.
*/
@Test
public void testFromMarshaledBundle() {
@@ -13,7 +13,6 @@ import static com.facebook.react.modules.systeminfo.AndroidInfoHelpers.getFriend
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import androidx.annotation.Nullable;
import com.facebook.hermes.reactexecutor.HermesExecutorFactory;
import com.facebook.infer.annotation.Assertions;
@@ -290,7 +289,8 @@ public class ReactInstanceManagerBuilder {
mCustomPackagerCommandHandlers);
}
private JavaScriptExecutorFactory getDefaultJSExecutorFactory(String appName, String deviceName, Context applicationContext) {
private JavaScriptExecutorFactory getDefaultJSExecutorFactory(
String appName, String deviceName, Context applicationContext) {
try {
// If JSC is included, use it as normal
initializeSoLoaderIfNecessary(applicationContext);
@@ -9,7 +9,6 @@ package com.facebook.react.bridge;
import android.os.Bundle;
import android.os.Parcelable;
import androidx.annotation.Nullable;
import java.lang.reflect.Array;
import java.util.AbstractList;
@@ -86,8 +86,7 @@ public class ReactScrollViewManager extends ViewGroupManager<ReactScrollView>
}
@ReactProp(name = "disableIntervalMomentum")
public void setDisableIntervalMomentum(
ReactScrollView view, boolean disbaleIntervalMomentum) {
public void setDisableIntervalMomentum(ReactScrollView view, boolean disbaleIntervalMomentum) {
view.setDisableIntervalMomentum(disbaleIntervalMomentum);
}
@@ -81,8 +81,8 @@ public class CustomStyleSpan extends MetricAffectingSpan implements ReactSpan {
@Nullable String fontFeatureSettings,
@Nullable String family,
AssetManager assetManager) {
Typeface typeface = ReactTypefaceUtils.applyStyles(
paint.getTypeface(), style, weight, family, assetManager);
Typeface typeface =
ReactTypefaceUtils.applyStyles(paint.getTypeface(), style, weight, family, assetManager);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
paint.setFontFeatureSettings(fontFeatureSettings);
}
@@ -93,9 +93,7 @@ public class TextAttributeProps {
*/
protected @Nullable String mFontFamily = null;
/**
* @see android.graphics.Paint#setFontFeatureSettings
*/
/** @see android.graphics.Paint#setFontFeatureSettings */
protected @Nullable String mFontFeatureSettings = null;
protected boolean mContainsImages = false;