From 0f503f40ac6845dbf7fc88e0dba1f2a7494d02a1 Mon Sep 17 00:00:00 2001 From: Ron Edelstein Date: Sat, 24 Aug 2019 20:31:54 -0700 Subject: [PATCH] Apply java formatting Reviewed By: zertosh Differential Revision: D17006136 fbshipit-source-id: 356442170cee830f4794bff456a6d2162f45d6b3 --- .../com/facebook/flipper/sample/MainActivityTest.java | 4 ++-- .../connectivitytest/ConnectionTestActivity.java | 4 ++-- .../flipper/connectivitytest/ConnectionTestPlugin.java | 4 ++-- .../flipper/plugins/example/ExampleFlipperPlugin.java | 4 ++-- .../com/facebook/flipper/sample/ExampleActions.java | 4 ++-- .../plugins/example/ExampleFlipperPluginTest.java | 4 ++-- .../flipper/plugins/example/TestApplication.java | 4 ++-- .../common/memory/manager/DebugMemoryManager.java | 4 ++-- .../common/memory/manager/NoOpDebugMemoryManager.java | 4 ++-- .../java/com/facebook/flipper/core/FlipperPlugin.java | 2 +- .../flipper/nativeplugins/table/TablePlugin.java | 3 +-- .../fresco/objecthelper/FlipperObjectHelper.java | 3 ++- .../plugins/inspector/InspectorFlipperPlugin.java | 10 ++-------- .../inspector/descriptors/ApplicationDescriptor.java | 2 +- .../plugins/litho/DebugComponentDescriptor.java | 1 - .../flipper/plugins/sandbox/SandboxFlipperPlugin.java | 8 ++++---- .../com/facebook/flipper/android/FlipperPropsTest.java | 4 ++-- .../flipper/nativeplugins/table/MockTablePlugin.java | 4 ++-- .../flipper/nativeplugins/table/MockTableRow.java | 4 ++-- .../nativeplugins/table/TableMetadataTestUtils.java | 4 ++-- .../nativeplugins/table/TableRowDisplayImplTest.java | 4 ++-- .../plugins/common/MainThreadFlipperReceiverTest.java | 4 ++-- .../plugins/inspector/ApplicationWrapperTest.java | 4 ++-- .../plugins/inspector/DescriptorMappingTest.java | 4 ++-- .../plugins/inspector/InspectorFlipperPluginTest.java | 4 ++-- .../plugins/inspector/ThrowableMessageMatcher.java | 4 ++-- .../inspector/descriptors/ViewGroupDescriptorTest.java | 4 ++-- 27 files changed, 51 insertions(+), 58 deletions(-) diff --git a/android/sample/src/androidTest/java/com/facebook/flipper/sample/MainActivityTest.java b/android/sample/src/androidTest/java/com/facebook/flipper/sample/MainActivityTest.java index f173ce4f8..e5c5c6833 100644 --- a/android/sample/src/androidTest/java/com/facebook/flipper/sample/MainActivityTest.java +++ b/android/sample/src/androidTest/java/com/facebook/flipper/sample/MainActivityTest.java @@ -1,8 +1,8 @@ /** * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. */ package com.facebook.flipper.sample; diff --git a/android/sample/src/debug/java/com/facebook/flipper/connectivitytest/ConnectionTestActivity.java b/android/sample/src/debug/java/com/facebook/flipper/connectivitytest/ConnectionTestActivity.java index 6378cd938..fc2f6b7b2 100644 --- a/android/sample/src/debug/java/com/facebook/flipper/connectivitytest/ConnectionTestActivity.java +++ b/android/sample/src/debug/java/com/facebook/flipper/connectivitytest/ConnectionTestActivity.java @@ -1,8 +1,8 @@ /** * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. */ package com.facebook.flipper.connectivitytest; diff --git a/android/sample/src/debug/java/com/facebook/flipper/connectivitytest/ConnectionTestPlugin.java b/android/sample/src/debug/java/com/facebook/flipper/connectivitytest/ConnectionTestPlugin.java index 5dd2c2227..7662feda7 100644 --- a/android/sample/src/debug/java/com/facebook/flipper/connectivitytest/ConnectionTestPlugin.java +++ b/android/sample/src/debug/java/com/facebook/flipper/connectivitytest/ConnectionTestPlugin.java @@ -1,8 +1,8 @@ /** * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. */ package com.facebook.flipper.connectivitytest; diff --git a/android/sample/src/debug/java/com/facebook/flipper/plugins/example/ExampleFlipperPlugin.java b/android/sample/src/debug/java/com/facebook/flipper/plugins/example/ExampleFlipperPlugin.java index 71cbffa96..25ce2e076 100644 --- a/android/sample/src/debug/java/com/facebook/flipper/plugins/example/ExampleFlipperPlugin.java +++ b/android/sample/src/debug/java/com/facebook/flipper/plugins/example/ExampleFlipperPlugin.java @@ -1,8 +1,8 @@ /** * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. */ package com.facebook.flipper.plugins.example; diff --git a/android/sample/src/debug/java/com/facebook/flipper/sample/ExampleActions.java b/android/sample/src/debug/java/com/facebook/flipper/sample/ExampleActions.java index 56550f322..4e4d68a38 100644 --- a/android/sample/src/debug/java/com/facebook/flipper/sample/ExampleActions.java +++ b/android/sample/src/debug/java/com/facebook/flipper/sample/ExampleActions.java @@ -1,8 +1,8 @@ /** * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. */ package com.facebook.flipper.sample; diff --git a/android/sample/src/test/java/com/facebook/flipper/plugins/example/ExampleFlipperPluginTest.java b/android/sample/src/test/java/com/facebook/flipper/plugins/example/ExampleFlipperPluginTest.java index 1722a2bf3..a7aa4a0ab 100644 --- a/android/sample/src/test/java/com/facebook/flipper/plugins/example/ExampleFlipperPluginTest.java +++ b/android/sample/src/test/java/com/facebook/flipper/plugins/example/ExampleFlipperPluginTest.java @@ -1,8 +1,8 @@ /** * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. */ package com.facebook.flipper.plugins.example; diff --git a/android/sample/src/test/java/com/facebook/flipper/plugins/example/TestApplication.java b/android/sample/src/test/java/com/facebook/flipper/plugins/example/TestApplication.java index 15f3d2069..ad0786ca0 100644 --- a/android/sample/src/test/java/com/facebook/flipper/plugins/example/TestApplication.java +++ b/android/sample/src/test/java/com/facebook/flipper/plugins/example/TestApplication.java @@ -1,8 +1,8 @@ /** * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. */ package com.facebook.flipper.plugins.example; diff --git a/android/src/main/java/com/facebook/common/memory/manager/DebugMemoryManager.java b/android/src/main/java/com/facebook/common/memory/manager/DebugMemoryManager.java index 55a75c4de..60bd01de0 100644 --- a/android/src/main/java/com/facebook/common/memory/manager/DebugMemoryManager.java +++ b/android/src/main/java/com/facebook/common/memory/manager/DebugMemoryManager.java @@ -1,8 +1,8 @@ /** * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. */ package com.facebook.common.memory.manager; diff --git a/android/src/main/java/com/facebook/common/memory/manager/NoOpDebugMemoryManager.java b/android/src/main/java/com/facebook/common/memory/manager/NoOpDebugMemoryManager.java index b62afc710..d6c918241 100644 --- a/android/src/main/java/com/facebook/common/memory/manager/NoOpDebugMemoryManager.java +++ b/android/src/main/java/com/facebook/common/memory/manager/NoOpDebugMemoryManager.java @@ -1,8 +1,8 @@ /** * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. */ package com.facebook.common.memory.manager; diff --git a/android/src/main/java/com/facebook/flipper/core/FlipperPlugin.java b/android/src/main/java/com/facebook/flipper/core/FlipperPlugin.java index 1b8611dd1..c06a9cc47 100644 --- a/android/src/main/java/com/facebook/flipper/core/FlipperPlugin.java +++ b/android/src/main/java/com/facebook/flipper/core/FlipperPlugin.java @@ -35,7 +35,7 @@ public interface FlipperPlugin { 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(); } diff --git a/android/src/main/java/com/facebook/flipper/nativeplugins/table/TablePlugin.java b/android/src/main/java/com/facebook/flipper/nativeplugins/table/TablePlugin.java index 03df03f6c..ee82240d6 100644 --- a/android/src/main/java/com/facebook/flipper/nativeplugins/table/TablePlugin.java +++ b/android/src/main/java/com/facebook/flipper/nativeplugins/table/TablePlugin.java @@ -38,6 +38,5 @@ public abstract class TablePlugin implements NativePlugin { return false; } }; - } - + } } diff --git a/android/src/main/java/com/facebook/flipper/plugins/fresco/objecthelper/FlipperObjectHelper.java b/android/src/main/java/com/facebook/flipper/plugins/fresco/objecthelper/FlipperObjectHelper.java index 0f9268d36..46a22006f 100644 --- a/android/src/main/java/com/facebook/flipper/plugins/fresco/objecthelper/FlipperObjectHelper.java +++ b/android/src/main/java/com/facebook/flipper/plugins/fresco/objecthelper/FlipperObjectHelper.java @@ -54,7 +54,8 @@ public abstract class FlipperObjectHelper { } @Nullable - public FlipperObject toFlipperObject(@Nullable FlipperImageTracker.ImageDebugData imageDebugData) { + public FlipperObject toFlipperObject( + @Nullable FlipperImageTracker.ImageDebugData imageDebugData) { if (imageDebugData == null) { return null; } diff --git a/android/src/main/java/com/facebook/flipper/plugins/inspector/InspectorFlipperPlugin.java b/android/src/main/java/com/facebook/flipper/plugins/inspector/InspectorFlipperPlugin.java index 402c85f96..8b459003b 100644 --- a/android/src/main/java/com/facebook/flipper/plugins/inspector/InspectorFlipperPlugin.java +++ b/android/src/main/java/com/facebook/flipper/plugins/inspector/InspectorFlipperPlugin.java @@ -53,10 +53,7 @@ public class InspectorFlipperPlugin implements FlipperPlugin { } public InspectorFlipperPlugin(Context context, DescriptorMapping descriptorMapping) { - this( - new ApplicationWrapper(getAppContextFromContext(context)), - descriptorMapping, - null); + this(new ApplicationWrapper(getAppContextFromContext(context)), descriptorMapping, null); } public InspectorFlipperPlugin( @@ -64,10 +61,7 @@ public class InspectorFlipperPlugin implements FlipperPlugin { DescriptorMapping descriptorMapping, @Nullable List extensions) { - this( - new ApplicationWrapper(getAppContextFromContext(context)), - descriptorMapping, - extensions); + this(new ApplicationWrapper(getAppContextFromContext(context)), descriptorMapping, extensions); } // Package visible for testing diff --git a/android/src/main/java/com/facebook/flipper/plugins/inspector/descriptors/ApplicationDescriptor.java b/android/src/main/java/com/facebook/flipper/plugins/inspector/descriptors/ApplicationDescriptor.java index cbd8f300f..8c0801e33 100644 --- a/android/src/main/java/com/facebook/flipper/plugins/inspector/descriptors/ApplicationDescriptor.java +++ b/android/src/main/java/com/facebook/flipper/plugins/inspector/descriptors/ApplicationDescriptor.java @@ -112,7 +112,7 @@ public class ApplicationDescriptor extends NodeDescriptor { }); editedDelegates.add((ViewGroup) view); } else if (hasDelegateAlready && mConnection != null) { - FlipperObject params = + FlipperObject params = new FlipperObject.Builder() .put("type", "usage") .put("eventName", "accessibility:hasDelegateAlready") diff --git a/android/src/main/java/com/facebook/flipper/plugins/litho/DebugComponentDescriptor.java b/android/src/main/java/com/facebook/flipper/plugins/litho/DebugComponentDescriptor.java index 9c785fae5..1bffc1212 100644 --- a/android/src/main/java/com/facebook/flipper/plugins/litho/DebugComponentDescriptor.java +++ b/android/src/main/java/com/facebook/flipper/plugins/litho/DebugComponentDescriptor.java @@ -518,5 +518,4 @@ public class DebugComponentDescriptor extends NodeDescriptor { // TODO add support for Type.Dimension or similar return InspectorValue.mutable(Enum, v.toString()); } - } diff --git a/android/src/main/java/com/facebook/flipper/plugins/sandbox/SandboxFlipperPlugin.java b/android/src/main/java/com/facebook/flipper/plugins/sandbox/SandboxFlipperPlugin.java index 1fb3592db..881affcd0 100644 --- a/android/src/main/java/com/facebook/flipper/plugins/sandbox/SandboxFlipperPlugin.java +++ b/android/src/main/java/com/facebook/flipper/plugins/sandbox/SandboxFlipperPlugin.java @@ -68,8 +68,8 @@ public class SandboxFlipperPlugin implements FlipperPlugin { @Override public void onDisconnect() {} - @Override - public boolean runInBackground() { - return false; - } + @Override + public boolean runInBackground() { + return false; + } } diff --git a/android/src/test/java/com/facebook/flipper/android/FlipperPropsTest.java b/android/src/test/java/com/facebook/flipper/android/FlipperPropsTest.java index 1f487959e..d6fbc4310 100644 --- a/android/src/test/java/com/facebook/flipper/android/FlipperPropsTest.java +++ b/android/src/test/java/com/facebook/flipper/android/FlipperPropsTest.java @@ -1,8 +1,8 @@ /** * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. */ package com.facebook.flipper.android; diff --git a/android/src/test/java/com/facebook/flipper/nativeplugins/table/MockTablePlugin.java b/android/src/test/java/com/facebook/flipper/nativeplugins/table/MockTablePlugin.java index 6d0ecd5cb..7164504d1 100644 --- a/android/src/test/java/com/facebook/flipper/nativeplugins/table/MockTablePlugin.java +++ b/android/src/test/java/com/facebook/flipper/nativeplugins/table/MockTablePlugin.java @@ -1,8 +1,8 @@ /** * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. */ package com.facebook.flipper.nativeplugins.table; diff --git a/android/src/test/java/com/facebook/flipper/nativeplugins/table/MockTableRow.java b/android/src/test/java/com/facebook/flipper/nativeplugins/table/MockTableRow.java index 4eb9d1825..9fc72fcdc 100644 --- a/android/src/test/java/com/facebook/flipper/nativeplugins/table/MockTableRow.java +++ b/android/src/test/java/com/facebook/flipper/nativeplugins/table/MockTableRow.java @@ -1,8 +1,8 @@ /** * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. */ package com.facebook.flipper.nativeplugins.table; diff --git a/android/src/test/java/com/facebook/flipper/nativeplugins/table/TableMetadataTestUtils.java b/android/src/test/java/com/facebook/flipper/nativeplugins/table/TableMetadataTestUtils.java index dcbf074a2..fcc15da17 100644 --- a/android/src/test/java/com/facebook/flipper/nativeplugins/table/TableMetadataTestUtils.java +++ b/android/src/test/java/com/facebook/flipper/nativeplugins/table/TableMetadataTestUtils.java @@ -1,8 +1,8 @@ /** * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. */ package com.facebook.flipper.nativeplugins.table; diff --git a/android/src/test/java/com/facebook/flipper/nativeplugins/table/TableRowDisplayImplTest.java b/android/src/test/java/com/facebook/flipper/nativeplugins/table/TableRowDisplayImplTest.java index 50014b22a..212ce3c99 100644 --- a/android/src/test/java/com/facebook/flipper/nativeplugins/table/TableRowDisplayImplTest.java +++ b/android/src/test/java/com/facebook/flipper/nativeplugins/table/TableRowDisplayImplTest.java @@ -1,8 +1,8 @@ /** * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. */ package com.facebook.flipper.nativeplugins.table; diff --git a/android/src/test/java/com/facebook/flipper/plugins/common/MainThreadFlipperReceiverTest.java b/android/src/test/java/com/facebook/flipper/plugins/common/MainThreadFlipperReceiverTest.java index 4944903e2..05633f788 100644 --- a/android/src/test/java/com/facebook/flipper/plugins/common/MainThreadFlipperReceiverTest.java +++ b/android/src/test/java/com/facebook/flipper/plugins/common/MainThreadFlipperReceiverTest.java @@ -1,8 +1,8 @@ /** * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. */ package com.facebook.flipper.plugins.common; diff --git a/android/src/test/java/com/facebook/flipper/plugins/inspector/ApplicationWrapperTest.java b/android/src/test/java/com/facebook/flipper/plugins/inspector/ApplicationWrapperTest.java index 6c41db673..4e0bf5819 100644 --- a/android/src/test/java/com/facebook/flipper/plugins/inspector/ApplicationWrapperTest.java +++ b/android/src/test/java/com/facebook/flipper/plugins/inspector/ApplicationWrapperTest.java @@ -1,8 +1,8 @@ /** * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. */ package com.facebook.flipper.plugins.inspector; diff --git a/android/src/test/java/com/facebook/flipper/plugins/inspector/DescriptorMappingTest.java b/android/src/test/java/com/facebook/flipper/plugins/inspector/DescriptorMappingTest.java index 35cae49cd..93cf66639 100644 --- a/android/src/test/java/com/facebook/flipper/plugins/inspector/DescriptorMappingTest.java +++ b/android/src/test/java/com/facebook/flipper/plugins/inspector/DescriptorMappingTest.java @@ -1,8 +1,8 @@ /** * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. */ package com.facebook.flipper.plugins.inspector; diff --git a/android/src/test/java/com/facebook/flipper/plugins/inspector/InspectorFlipperPluginTest.java b/android/src/test/java/com/facebook/flipper/plugins/inspector/InspectorFlipperPluginTest.java index a6dfda231..34bf602b1 100644 --- a/android/src/test/java/com/facebook/flipper/plugins/inspector/InspectorFlipperPluginTest.java +++ b/android/src/test/java/com/facebook/flipper/plugins/inspector/InspectorFlipperPluginTest.java @@ -1,8 +1,8 @@ /** * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. */ package com.facebook.flipper.plugins.inspector; diff --git a/android/src/test/java/com/facebook/flipper/plugins/inspector/ThrowableMessageMatcher.java b/android/src/test/java/com/facebook/flipper/plugins/inspector/ThrowableMessageMatcher.java index a797f9059..37b21b4a0 100644 --- a/android/src/test/java/com/facebook/flipper/plugins/inspector/ThrowableMessageMatcher.java +++ b/android/src/test/java/com/facebook/flipper/plugins/inspector/ThrowableMessageMatcher.java @@ -1,8 +1,8 @@ /** * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. */ package com.facebook.flipper.plugins.inspector; diff --git a/android/src/test/java/com/facebook/flipper/plugins/inspector/descriptors/ViewGroupDescriptorTest.java b/android/src/test/java/com/facebook/flipper/plugins/inspector/descriptors/ViewGroupDescriptorTest.java index 8c59df6b4..49a7aaf86 100644 --- a/android/src/test/java/com/facebook/flipper/plugins/inspector/descriptors/ViewGroupDescriptorTest.java +++ b/android/src/test/java/com/facebook/flipper/plugins/inspector/descriptors/ViewGroupDescriptorTest.java @@ -1,8 +1,8 @@ /** * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. */ package com.facebook.flipper.plugins.inspector.descriptors;