public static void notNull(Object object, ErrorEnum error) {
if (object == null) {
throw new ServiceException(error.getCode(), error.getMsg());
}
}
java 开发 断言代码
阅读 37
2022-07-12
public static void notNull(Object object, ErrorEnum error) {
if (object == null) {
throw new ServiceException(error.getCode(), error.getMsg());
}
}
相关推荐
精彩评论(0)