diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java index 2c2fc48831c0d9..5883ee1b17e40a 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java @@ -119,12 +119,7 @@ public ReactModuleInfoProvider getReactModuleInfoProvider() { TurboModule.class.isAssignableFrom(moduleClass))); } - return new ReactModuleInfoProvider() { - @Override - public Map getReactModuleInfos() { - return reactModuleInfoMap; - } - }; + return () -> reactModuleInfoMap; } catch (InstantiationException e) { throw new RuntimeException( "No ReactModuleInfoProvider for CoreModulesPackage$$ReactModuleInfoProvider", e); diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/module/model/ReactModuleInfo.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/module/model/ReactModuleInfo.java index a44d43281e6552..f0560439468a09 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/module/model/ReactModuleInfo.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/module/model/ReactModuleInfo.java @@ -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( diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/AppStateModule.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/AppStateModule.java index e62bb0790e60b2..393a21890eae76 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/AppStateModule.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/AppStateModule.java @@ -23,7 +23,6 @@ @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";