From f6b3f2b35d15be678d164d446803fb85f058915c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateo=20Guzm=C3=A1n?= Date: Thu, 7 Aug 2025 23:18:38 +0200 Subject: [PATCH] Migrate DoNotStrip to Kotlin --- .../facebook/yoga/annotations/DoNotStrip.java | 18 ------------------ .../facebook/yoga/annotations/DoNotStrip.kt | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 18 deletions(-) delete mode 100644 java/com/facebook/yoga/annotations/DoNotStrip.java create mode 100644 java/com/facebook/yoga/annotations/DoNotStrip.kt diff --git a/java/com/facebook/yoga/annotations/DoNotStrip.java b/java/com/facebook/yoga/annotations/DoNotStrip.java deleted file mode 100644 index 574d3562b0..0000000000 --- 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 0000000000..c089037172 --- /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