cn.chenhuanming.octopus.util.ValidationUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of octopus Show documentation
Show all versions of octopus Show documentation
A simple excel import and export tool
The newest version!
package cn.chenhuanming.octopus.util;
/**
* @author guangdao
* Created at 2019-05-06
*/
public class ValidationUtils {
public static void notEmpty(String s, String name) {
if (StringUtils.isEmpty(s)) {
throw new IllegalArgumentException(String.format("%s can not be empty", name));
}
}
}