Here you can find the source of assertNonEmpty(String s, String name)
public static String assertNonEmpty(String s, String name)
//package com.java2s; //License from project: Apache License public class Main { public static String assertNonEmpty(String s, String name) { if (s == null || s.length() == 0) { throw new IllegalArgumentException(name + " must not be null or empty"); }/*w w w.ja va 2 s. c o m*/ return s; } }