diff --git a/java/com/facebook/yoga/annotations/DoNotStrip.java b/java/com/facebook/yoga/annotations/DoNotStrip.java deleted file mode 100644 index 574d3562..00000000 --- a/java/com/facebook/yoga/annotations/DoNotStrip.java +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -package com.facebook.yoga.annotations; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.Target; - -import static java.lang.annotation.RetentionPolicy.CLASS; - -@Target({ ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR }) -@Retention(CLASS) -public @interface DoNotStrip { } diff --git a/java/com/facebook/yoga/annotations/DoNotStrip.kt b/java/com/facebook/yoga/annotations/DoNotStrip.kt new file mode 100644 index 00000000..c0890371 --- /dev/null +++ b/java/com/facebook/yoga/annotations/DoNotStrip.kt @@ -0,0 +1,18 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +package com.facebook.yoga.annotations + +@Target( + AnnotationTarget.CLASS, + AnnotationTarget.FIELD, + AnnotationTarget.FUNCTION, + AnnotationTarget.PROPERTY_GETTER, + AnnotationTarget.PROPERTY_SETTER, + AnnotationTarget.CONSTRUCTOR) +@Retention(AnnotationRetention.BINARY) +public annotation class DoNotStrip