mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Deprecate JavaMethodWrapper (#53124)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/53124 Deprecate LegacyArchitecture class JavaMethodWrapperchagelog: changelog: [Android][Changed] Deprecate LegacyArchitecture class JavaMethodWrapper Reviewed By: mlord93 Differential Revision: D79672296 fbshipit-source-id: 05432263c4452294c667226cb8e062c50f036931
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c4715886a9
commit
19a99dd088
+3
@@ -17,6 +17,9 @@ import com.facebook.systrace.SystraceMessage
|
||||
import java.lang.reflect.InvocationTargetException
|
||||
import java.lang.reflect.Method
|
||||
|
||||
@Deprecated(
|
||||
message = "This class is part of Legacy Architecture and will be removed in a future release",
|
||||
level = DeprecationLevel.WARNING)
|
||||
@LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR)
|
||||
internal class JavaMethodWrapper(
|
||||
private val moduleWrapper: JavaModuleWrapper,
|
||||
|
||||
+1
@@ -74,6 +74,7 @@ internal class JavaModuleWrapper(
|
||||
targetMethod.getAnnotation(ReactMethod::class.java)?.let { annotation ->
|
||||
val methodName = targetMethod.name
|
||||
val md = MethodDescriptor()
|
||||
@Suppress("DEPRECATION")
|
||||
val method = JavaMethodWrapper(this, targetMethod, annotation.isBlockingSynchronousMethod)
|
||||
md.name = methodName
|
||||
md.type = method.type
|
||||
|
||||
Reference in New Issue
Block a user