Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ protected void link(String href, String name) {
* @see Sink#text(String)
*/
protected void text(String text) {
if (StringUtils.isEmpty(text)) // Take care of spaces
if (text == null || text.isEmpty()) // Take care of spaces
{
sink.text("-");
} else {
Expand Down Expand Up @@ -378,7 +378,7 @@ protected void verbatimText(String text) {
* @see Sink#verbatim_()
*/
protected void verbatimLink(String text, String href) {
if (StringUtils.isEmpty(href)) {
if (href == null || href.isEmpty()) {
verbatimText(text);
} else {
sink.verbatim();
Expand Down Expand Up @@ -426,7 +426,7 @@ protected void javaScript(String jsCode) {
* @see #applyPattern(String)
*/
public void linkPatternedText(String text) {
if (StringUtils.isEmpty(text)) {
if (text == null || text.isEmpty()) {
text(text);
} else {
List<String> segments = applyPattern(text);
Expand Down Expand Up @@ -506,7 +506,7 @@ protected static String propertiesToString(Properties props) {
* @return a map of text/href
*/
private static List<String> applyPattern(String text) {
if (StringUtils.isEmpty(text)) {
if (text == null || text.isEmpty()) {
return null;
}

Expand Down