mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix lint warns (#38596)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/38596 Fix lint warns changelog: [internal] internal Reviewed By: arushikesarwani94 Differential Revision: D47445900 fbshipit-source-id: af1d30e3889050c15d015cd6f1c35c73210167d9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
e9246852df
commit
faae720e41
+1
-6
@@ -119,12 +119,7 @@ public class CoreModulesPackage extends TurboReactPackage implements ReactPackag
|
||||
TurboModule.class.isAssignableFrom(moduleClass)));
|
||||
}
|
||||
|
||||
return new ReactModuleInfoProvider() {
|
||||
@Override
|
||||
public Map<String, ReactModuleInfo> getReactModuleInfos() {
|
||||
return reactModuleInfoMap;
|
||||
}
|
||||
};
|
||||
return () -> reactModuleInfoMap;
|
||||
} catch (InstantiationException e) {
|
||||
throw new RuntimeException(
|
||||
"No ReactModuleInfoProvider for CoreModulesPackage$$ReactModuleInfoProvider", e);
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ public class ReactModuleInfo {
|
||||
private final boolean mNeedsEagerInit;
|
||||
private final boolean mHasConstants;
|
||||
private final boolean mIsCxxModule;
|
||||
private String mClassName;
|
||||
private final String mClassName;
|
||||
private final boolean mIsTurboModule;
|
||||
|
||||
public ReactModuleInfo(
|
||||
|
||||
-1
@@ -23,7 +23,6 @@ import javax.annotation.Nullable;
|
||||
@ReactModule(name = NativeAppStateSpec.NAME)
|
||||
public class AppStateModule extends NativeAppStateSpec
|
||||
implements LifecycleEventListener, WindowFocusChangeListener {
|
||||
public static final String TAG = AppStateModule.class.getSimpleName();
|
||||
|
||||
public static final String APP_STATE_ACTIVE = "active";
|
||||
public static final String APP_STATE_BACKGROUND = "background";
|
||||
|
||||
Reference in New Issue
Block a user