Commit ddd25bb7 authored by Fred's avatar Fred

去掉assert

parent bd434b98
package com.govmade.common.utils;
import org.apache.commons.lang.StringUtils;
import com.govmade.common.exception.RRException;
/**
* 数据校验
*
*/
public abstract class Assert {
public static void isBlank(String str, String message) {
if (StringUtils.isBlank(str)) {
throw new RRException(message);
}
}
public static void isNull(Object object, String message) {
if (object == null) {
throw new RRException(message);
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment