File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
hibernate-core/src/main/java/org/hibernate/internal/util Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 2323import org .hibernate .PropertyNotFoundException ;
2424import org .hibernate .boot .registry .classloading .spi .ClassLoaderService ;
2525import org .hibernate .boot .registry .classloading .spi .ClassLoadingException ;
26+ import org .hibernate .internal .build .AllowReflection ;
2627import org .hibernate .internal .util .collections .ArrayHelper ;
2728import org .hibernate .property .access .internal .PropertyAccessStrategyGetterImpl ;
2829import 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" )
You can’t perform that action at this time.
0 commit comments