Instead of isNullOrEmpty()
public static boolean isNullOrEmpty(String contentType) {
if (contentType != null && !contentType.isEmpty())
return false;
return true;
}
use StringUtils.isEmpty();
public static boolean isNullOrEmpty(String contentType) {
if (contentType != null && !contentType.isEmpty())
return false;
return true;
}
use StringUtils.isEmpty();
import org.apache.commons.lang.StringUtils;
ReplyDelete