Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 704775e

Browse files
put back a method used by Agroal module
1 parent b5ccc16 commit 704775e

File tree

1 file changed

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

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,4 +335,14 @@ public static <T> void forEach(T[] array, Consumer<T> consumer) {
335335
}
336336
}
337337
}
338+
339+
/**
340+
* @deprecated Use {@link Array#newInstance(Class, int)} instead.
341+
*/
342+
@Deprecated
343+
@SuppressWarnings("unchecked")
344+
@AllowReflection
345+
public static <T> T[] newInstance(Class<T> elementType, int length) {
346+
return (T[]) Array.newInstance( elementType, length );
347+
}
338348
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /