Skip to content

Commit fd24a1b

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Fix ReflectionMethodUse: Remove reflection in AnimationDriver error message (facebook#55359)
Summary: 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 Differential Revision: D91736698
1 parent eb11632 commit fd24a1b

File tree

1 file changed

+1
-3
lines changed
  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react/animated

1 file changed

+1
-3
lines changed

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)