Skip to content

Commit f56ddcb

Browse files
committed
Add @API annotations to new public methods
Signed-off-by: Ogu1208 <[email protected]>
1 parent d7daebe commit f56ddcb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

junit-platform-commons/src/main/java/org/junit/platform/commons/util/KotlinReflectionUtils.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ private static Class<?>[] copyWithoutFirst(Class<?>[] values) {
125125
return result;
126126
}
127127

128+
@API(status = INTERNAL, since = "6.1")
128129
public static boolean isKotlinType(Class<?> clazz) {
129130
return kotlinMetadata != null //
130131
&& clazz.getDeclaredAnnotation(kotlinMetadata) != null;
@@ -162,12 +163,14 @@ public static Class<?>[] getKotlinSuspendingFunctionParameterTypes(Method method
162163
return KotlinFunctionUtils.invokeKotlinSuspendingFunction(method, target, args);
163164
}
164165

166+
@API(status = INTERNAL, since = "6.1")
165167
public static boolean isInstanceOfInlineType(@Nullable Object value) {
166-
return jvmInline != null //
167-
&& value != null //
168+
return jvmInline != null
169+
&& value != null
168170
&& value.getClass().getDeclaredAnnotation(jvmInline) != null;
169171
}
170172

173+
@API(status = INTERNAL, since = "6.1")
171174
public static @Nullable Object invokeKotlinFunction(Method method, @Nullable Object target,
172175
@Nullable Object... args) {
173176
requireKotlinReflect(method);

0 commit comments

Comments
 (0)