Skip to content

Commit 0d69bf8

Browse files
committed
HHH-18976 Deprecate ArrayHelper#newInstance in favor of the standard Array#newInstance
1 parent 7d3531d commit 0d69bf8

File tree

1 file changed

+4
-0
lines changed
  • hibernate-core/src/main/java/org/hibernate/internal/util/collections

1 file changed

+4
-0
lines changed

hibernate-core/src/main/java/org/hibernate/internal/util/collections/ArrayHelper.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,10 @@ public static <T> void forEach(T[] array, Consumer<T> consumer) {
522522
}
523523
}
524524

525+
/**
526+
* @deprecated Use {@link Array#newInstance(Class, int)} instead.
527+
*/
528+
@Deprecated
525529
@SuppressWarnings("unchecked")
526530
@AllowReflection
527531
public static <T> T[] newInstance(Class<T> elementType, int length) {

0 commit comments

Comments
 (0)