Here you can find the source of assertQualifiedString(String str, String argName)
public static void assertQualifiedString(String str, String argName)
//package com.java2s; //License from project: Apache License public class Main { public static void assertQualifiedString(String str, String argName) { if (!isQualifiedString(str)) { throw new IllegalArgumentException( "Null or zero length string found. str[" + str + "] argumentName[" + argName + "]"); }//from w ww . jav a2 s . co m } /** * This method will check for the null string * * @param str to be check * @return true if string is not null */ public static boolean isQualifiedString(String str) { return str != null && str.trim().length() > 0; } }