Cleanup 1/n
Summary: Making some changes to make this more idiomatic and abide by the Flipper/FB standards. This one just removes some unused variables and annotations. Reviewed By: jknoxville Differential Revision: D19470676 fbshipit-source-id: 4beb516f00228b1d33e4e1b42d9bc4f8c29af565
This commit is contained in:
committed by
Facebook Github Bot
parent
0812568be1
commit
6864556912
@@ -20,8 +20,6 @@ import java.util.List;
|
||||
* application context lives shorter than the application itself, e.g. reload creates a fresh one.
|
||||
*/
|
||||
public class FlipperPackage implements ReactPackage {
|
||||
static FlipperModule flipperModule;
|
||||
|
||||
@Override
|
||||
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
|
||||
return Arrays.<NativeModule>asList(
|
||||
|
||||
@@ -58,7 +58,7 @@ public abstract class FlipperReactNativeJavaScriptPlugin implements FlipperPlugi
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisconnect() throws Exception {
|
||||
public void onDisconnect() {
|
||||
this.module.sendJSEvent("react-native-flipper-plugin-disconnect", getPluginParams());
|
||||
this.connection = null;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ public class FlipperReactNativeJavaScriptReceiver implements FlipperReceiver {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onReceive(FlipperObject params, FlipperResponder responder) throws Exception {
|
||||
public void onReceive(FlipperObject params, FlipperResponder responder) {
|
||||
WritableMap eventData = Arguments.createMap();
|
||||
eventData.putString("plugin", plugin);
|
||||
eventData.putString("method", method);
|
||||
|
||||
Reference in New Issue
Block a user