public static String notEmpty(String value,String name,String info){
  if (value == null) {
    throw new IllegalArgumentException(name + " cannot be null" + (info == null ? "" : ", " + info));
  }
  return notEmptyIfNotNull(value,name,info);
}

public static String notEmpty ( String value , String name , String info ) { if ( value == null ) { throw new IllegalArgumentException ( name + " cannot be null" + ( info == null ? "" : ", " + info ) ) ; } return notEmptyIfNotNull ( value , name , info ) ; }
check that a string is not null and not empty . if null or emtpy throws an illegalargumentexception .
