Skip to content

Commit 485bbda

Browse files
mdvaccameta-codesync[bot]
authored andcommitted
Fix ReflectionMethodUse: Remove reflection in AnimationDriver error message (#55359)
Summary: Pull Request resolved: #55359 Fixed ReflectionMethodUse lint error in AnimationDriver.kt. Replaced `javaClass.simpleName` with a hardcoded string to avoid reflection which can cause issues with Redex obfuscation in production builds. changelog: [internal] internal Reviewed By: javache Differential Revision: D91736698 fbshipit-source-id: 9e6c485825aa8e54e5bbdc2d8d872510f3150c4a
1 parent de59948 commit 485bbda

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react/animated

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/animated/AnimationDriver.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ internal abstract class AnimationDriver {
3434
* start animating with the new properties (different destination or spring settings)
3535
*/
3636
open fun resetConfig(config: ReadableMap) {
37-
throw JSApplicationCausedNativeException(
38-
"Animation config for ${javaClass.simpleName} cannot be reset"
39-
)
37+
throw JSApplicationCausedNativeException("Animation config for AnimationDriver cannot be reset")
4038
}
4139
}

0 commit comments

Comments
 (0)