diff --git a/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java b/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java index 57e0245..6f50a8e 100644 --- a/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java +++ b/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java @@ -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 { @@ -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(); @@ -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 segments = applyPattern(text); @@ -506,7 +506,7 @@ protected static String propertiesToString(Properties props) { * @return a map of text/href */ private static List applyPattern(String text) { - if (StringUtils.isEmpty(text)) { + if (text == null || text.isEmpty()) { return null; }