All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.chenhuanming.octopus.util.ValidationUtils Maven / Gradle / Ivy

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));
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy