Apply java formatting

Reviewed By: zertosh

Differential Revision: D17006136

fbshipit-source-id: 356442170cee830f4794bff456a6d2162f45d6b3
This commit is contained in:
Ron Edelstein
2019-08-24 20:31:54 -07:00
committed by Facebook Github Bot
parent 378638a451
commit 0f503f40ac
27 changed files with 51 additions and 58 deletions

View File

@@ -1,8 +1,8 @@
/** /**
* Copyright (c) Facebook, Inc. and its affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the LICENSE * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* file in the root directory of this source tree. * directory of this source tree.
*/ */
package com.facebook.flipper.sample; package com.facebook.flipper.sample;

View File

@@ -1,8 +1,8 @@
/** /**
* Copyright (c) Facebook, Inc. and its affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the LICENSE * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* file in the root directory of this source tree. * directory of this source tree.
*/ */
package com.facebook.flipper.connectivitytest; package com.facebook.flipper.connectivitytest;

View File

@@ -1,8 +1,8 @@
/** /**
* Copyright (c) Facebook, Inc. and its affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the LICENSE * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* file in the root directory of this source tree. * directory of this source tree.
*/ */
package com.facebook.flipper.connectivitytest; package com.facebook.flipper.connectivitytest;

View File

@@ -1,8 +1,8 @@
/** /**
* Copyright (c) Facebook, Inc. and its affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the LICENSE * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* file in the root directory of this source tree. * directory of this source tree.
*/ */
package com.facebook.flipper.plugins.example; package com.facebook.flipper.plugins.example;

View File

@@ -1,8 +1,8 @@
/** /**
* Copyright (c) Facebook, Inc. and its affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the LICENSE * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* file in the root directory of this source tree. * directory of this source tree.
*/ */
package com.facebook.flipper.sample; package com.facebook.flipper.sample;

View File

@@ -1,8 +1,8 @@
/** /**
* Copyright (c) Facebook, Inc. and its affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the LICENSE * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* file in the root directory of this source tree. * directory of this source tree.
*/ */
package com.facebook.flipper.plugins.example; package com.facebook.flipper.plugins.example;

View File

@@ -1,8 +1,8 @@
/** /**
* Copyright (c) Facebook, Inc. and its affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the LICENSE * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* file in the root directory of this source tree. * directory of this source tree.
*/ */
package com.facebook.flipper.plugins.example; package com.facebook.flipper.plugins.example;

View File

@@ -1,8 +1,8 @@
/** /**
* Copyright (c) Facebook, Inc. and its affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the LICENSE * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* file in the root directory of this source tree. * directory of this source tree.
*/ */
package com.facebook.common.memory.manager; package com.facebook.common.memory.manager;

View File

@@ -1,8 +1,8 @@
/** /**
* Copyright (c) Facebook, Inc. and its affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the LICENSE * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* file in the root directory of this source tree. * directory of this source tree.
*/ */
package com.facebook.common.memory.manager; package com.facebook.common.memory.manager;

View File

@@ -35,7 +35,7 @@ public interface FlipperPlugin {
void onDisconnect() throws Exception; void onDisconnect() throws Exception;
/** /**
Returns true if the plugin is meant to be run in background too, otherwise it returns false. * Returns true if the plugin is meant to be run in background too, otherwise it returns false.
*/ */
boolean runInBackground(); boolean runInBackground();
} }

View File

@@ -38,6 +38,5 @@ public abstract class TablePlugin implements NativePlugin {
return false; return false;
} }
}; };
} }
} }

View File

@@ -54,7 +54,8 @@ public abstract class FlipperObjectHelper {
} }
@Nullable @Nullable
public FlipperObject toFlipperObject(@Nullable FlipperImageTracker.ImageDebugData imageDebugData) { public FlipperObject toFlipperObject(
@Nullable FlipperImageTracker.ImageDebugData imageDebugData) {
if (imageDebugData == null) { if (imageDebugData == null) {
return null; return null;
} }

View File

@@ -53,10 +53,7 @@ public class InspectorFlipperPlugin implements FlipperPlugin {
} }
public InspectorFlipperPlugin(Context context, DescriptorMapping descriptorMapping) { public InspectorFlipperPlugin(Context context, DescriptorMapping descriptorMapping) {
this( this(new ApplicationWrapper(getAppContextFromContext(context)), descriptorMapping, null);
new ApplicationWrapper(getAppContextFromContext(context)),
descriptorMapping,
null);
} }
public InspectorFlipperPlugin( public InspectorFlipperPlugin(
@@ -64,10 +61,7 @@ public class InspectorFlipperPlugin implements FlipperPlugin {
DescriptorMapping descriptorMapping, DescriptorMapping descriptorMapping,
@Nullable List<ExtensionCommand> extensions) { @Nullable List<ExtensionCommand> extensions) {
this( this(new ApplicationWrapper(getAppContextFromContext(context)), descriptorMapping, extensions);
new ApplicationWrapper(getAppContextFromContext(context)),
descriptorMapping,
extensions);
} }
// Package visible for testing // Package visible for testing

View File

@@ -112,7 +112,7 @@ public class ApplicationDescriptor extends NodeDescriptor<ApplicationWrapper> {
}); });
editedDelegates.add((ViewGroup) view); editedDelegates.add((ViewGroup) view);
} else if (hasDelegateAlready && mConnection != null) { } else if (hasDelegateAlready && mConnection != null) {
FlipperObject params = FlipperObject params =
new FlipperObject.Builder() new FlipperObject.Builder()
.put("type", "usage") .put("type", "usage")
.put("eventName", "accessibility:hasDelegateAlready") .put("eventName", "accessibility:hasDelegateAlready")

View File

@@ -518,5 +518,4 @@ public class DebugComponentDescriptor extends NodeDescriptor<DebugComponent> {
// TODO add support for Type.Dimension or similar // TODO add support for Type.Dimension or similar
return InspectorValue.mutable(Enum, v.toString()); return InspectorValue.mutable(Enum, v.toString());
} }
} }

View File

@@ -68,8 +68,8 @@ public class SandboxFlipperPlugin implements FlipperPlugin {
@Override @Override
public void onDisconnect() {} public void onDisconnect() {}
@Override @Override
public boolean runInBackground() { public boolean runInBackground() {
return false; return false;
} }
} }

View File

@@ -1,8 +1,8 @@
/** /**
* Copyright (c) Facebook, Inc. and its affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the LICENSE * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* file in the root directory of this source tree. * directory of this source tree.
*/ */
package com.facebook.flipper.android; package com.facebook.flipper.android;

View File

@@ -1,8 +1,8 @@
/** /**
* Copyright (c) Facebook, Inc. and its affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the LICENSE * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* file in the root directory of this source tree. * directory of this source tree.
*/ */
package com.facebook.flipper.nativeplugins.table; package com.facebook.flipper.nativeplugins.table;

View File

@@ -1,8 +1,8 @@
/** /**
* Copyright (c) Facebook, Inc. and its affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the LICENSE * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* file in the root directory of this source tree. * directory of this source tree.
*/ */
package com.facebook.flipper.nativeplugins.table; package com.facebook.flipper.nativeplugins.table;

View File

@@ -1,8 +1,8 @@
/** /**
* Copyright (c) Facebook, Inc. and its affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the LICENSE * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* file in the root directory of this source tree. * directory of this source tree.
*/ */
package com.facebook.flipper.nativeplugins.table; package com.facebook.flipper.nativeplugins.table;

View File

@@ -1,8 +1,8 @@
/** /**
* Copyright (c) Facebook, Inc. and its affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the LICENSE * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* file in the root directory of this source tree. * directory of this source tree.
*/ */
package com.facebook.flipper.nativeplugins.table; package com.facebook.flipper.nativeplugins.table;

View File

@@ -1,8 +1,8 @@
/** /**
* Copyright (c) Facebook, Inc. and its affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the LICENSE * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* file in the root directory of this source tree. * directory of this source tree.
*/ */
package com.facebook.flipper.plugins.common; package com.facebook.flipper.plugins.common;

View File

@@ -1,8 +1,8 @@
/** /**
* Copyright (c) Facebook, Inc. and its affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the LICENSE * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* file in the root directory of this source tree. * directory of this source tree.
*/ */
package com.facebook.flipper.plugins.inspector; package com.facebook.flipper.plugins.inspector;

View File

@@ -1,8 +1,8 @@
/** /**
* Copyright (c) Facebook, Inc. and its affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the LICENSE * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* file in the root directory of this source tree. * directory of this source tree.
*/ */
package com.facebook.flipper.plugins.inspector; package com.facebook.flipper.plugins.inspector;

View File

@@ -1,8 +1,8 @@
/** /**
* Copyright (c) Facebook, Inc. and its affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the LICENSE * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* file in the root directory of this source tree. * directory of this source tree.
*/ */
package com.facebook.flipper.plugins.inspector; package com.facebook.flipper.plugins.inspector;

View File

@@ -1,8 +1,8 @@
/** /**
* Copyright (c) Facebook, Inc. and its affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the LICENSE * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* file in the root directory of this source tree. * directory of this source tree.
*/ */
package com.facebook.flipper.plugins.inspector; package com.facebook.flipper.plugins.inspector;

View File

@@ -1,8 +1,8 @@
/** /**
* Copyright (c) Facebook, Inc. and its affiliates. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the LICENSE * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* file in the root directory of this source tree. * directory of this source tree.
*/ */
package com.facebook.flipper.plugins.inspector.descriptors; package com.facebook.flipper.plugins.inspector.descriptors;