tech.kronicle.utils.StringUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kronicle-utils Show documentation
Show all versions of kronicle-utils Show documentation
Kronicle utils library that contains utility classes for use by Kronicle and its plugins
package tech.kronicle.utils;
import static java.util.Objects.requireNonNull;
public final class StringUtils {
public static String requireNonEmpty(String value, String name) {
requireNonNull(value, name);
if (value.isEmpty()) {
throw new IllegalArgumentException(name + " must not be empty");
}
return value;
}
private StringUtils() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy