From c52f38eb7b104f175edd84a9f2e89567d236ff78 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Wed, 3 May 2023 21:11:37 -0700 Subject: [PATCH] Migrate VisibleForTesting to kotlin (#37241) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/37241 EZ diff that migrates VisibleForTesting interface to kotlin There are just 2 files into the annotations package, now both will be written in kotlin bypass-github-export-checks changelog: [internal] internal Reviewed By: cortinico, yungsters Differential Revision: D45454643 fbshipit-source-id: 7d3ac9f85141f720a201ca81102336e16758ea30 --- .../{VisibleForTesting.java => VisibleForTesting.kt} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/annotations/{VisibleForTesting.java => VisibleForTesting.kt} (78%) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/annotations/VisibleForTesting.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/annotations/VisibleForTesting.kt similarity index 78% rename from packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/annotations/VisibleForTesting.java rename to packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/annotations/VisibleForTesting.kt index 2b9e919775d..006958f9db2 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/annotations/VisibleForTesting.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/annotations/VisibleForTesting.kt @@ -5,10 +5,11 @@ * LICENSE file in the root directory of this source tree. */ -package com.facebook.react.common.annotations; + +package com.facebook.react.common.annotations /** * Annotates a method that should have restricted visibility but it's required to be public for use * in test code only. */ -public @interface VisibleForTesting {} +annotation class VisibleForTesting