update libraries and dependencies's version
This commit is contained in:
16
common/src/main/java/com/stardust/util/ObjectHelper.java
Normal file
16
common/src/main/java/com/stardust/util/ObjectHelper.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package com.stardust.util;
|
||||
|
||||
public class ObjectHelper {
|
||||
|
||||
public static void requireNonNull(Object obj, String name){
|
||||
if(obj == null){
|
||||
throw new NullPointerException(name + " should not be null");
|
||||
}
|
||||
}
|
||||
|
||||
public static void requireNonNull(Object obj){
|
||||
if(obj == null){
|
||||
throw new NullPointerException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user