Apply java formatting
Reviewed By: zertosh Differential Revision: D17006136 fbshipit-source-id: 356442170cee830f4794bff456a6d2162f45d6b3
This commit is contained in:
committed by
Facebook Github Bot
parent
378638a451
commit
0f503f40ac
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,6 +38,5 @@ public abstract class TablePlugin implements NativePlugin {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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")
|
||||||
|
|||||||
@@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user