Skip to content

Commit 746d2b1

Browse files
author
Vincent Potucek
committed
requireNonNull
1 parent d65c375 commit 746d2b1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

impl/maven-impl/src/main/java/org/apache/maven/impl/ImplUtils.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
import java.util.stream.Collectors;
2626

2727
class ImplUtils {
28+
29+
/**
30+
* @deprecated Use {@link Objects#requireNonNull(Object)} instead.
31+
*/
32+
@Deprecated
2833
public static <T> T nonNull(T t) {
2934
if (t == null) {
3035
throw new IllegalArgumentException();

0 commit comments

Comments
 (0)