Skip to content

Commit b181afe

Browse files
committed
shut up forbiddenApis
1 parent eeacfac commit b181afe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hibernate-core/src/main/java/org/hibernate/internal/util/ReflectHelper.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.hibernate.PropertyNotFoundException;
2424
import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
2525
import org.hibernate.boot.registry.classloading.spi.ClassLoadingException;
26+
import org.hibernate.internal.build.AllowReflection;
2627
import org.hibernate.internal.util.collections.ArrayHelper;
2728
import org.hibernate.property.access.internal.PropertyAccessStrategyGetterImpl;
2829
import org.hibernate.property.access.spi.Getter;
@@ -942,6 +943,7 @@ public static <T extends Enum<T>> Class<T> getClass(Enum<T> value) {
942943
return (Class<T>) value.getClass();
943944
}
944945

946+
@AllowReflection
945947
public static <T> Class<T[]> arrayClass(Class<T> clazz) {
946948
final Object instance = Array.newInstance( clazz, 0 );
947949
@SuppressWarnings("unchecked")

0 commit comments

Comments
 (0)