diff --git a/asciidoc/templates/extensions/src/org/apache/ivy/asciidoc/JiraMacro.java b/asciidoc/templates/extensions/src/org/apache/ivy/asciidoc/JiraMacro.java index d6c13068d..8346ec732 100644 --- a/asciidoc/templates/extensions/src/org/apache/ivy/asciidoc/JiraMacro.java +++ b/asciidoc/templates/extensions/src/org/apache/ivy/asciidoc/JiraMacro.java @@ -20,21 +20,17 @@ import java.util.Map; import java.util.HashMap; -import org.asciidoctor.ast.AbstractBlock; +import org.asciidoctor.ast.ContentNode; import org.asciidoctor.extension.InlineMacroProcessor; public class JiraMacro extends InlineMacroProcessor { - public JiraMacro(String macroName, Map config) { - super(macroName, config); - } - @Override - public String process(AbstractBlock parent, String target, Map attributes) { + public String process(ContentNode parent, String target, Map attributes) { Map options = new HashMap(); options.put("type", ":link"); options.put("target", "https://issues.apache.org/jira/browse/" + target); - return createInline(parent, "anchor", target, attributes, options).convert(); + return createPhraseNode(parent, "anchor", target, attributes, options).convert(); } } diff --git a/build-release.xml b/build-release.xml index 79e3201ae..96de5a159 100644 --- a/build-release.xml +++ b/build-release.xml @@ -168,7 +168,7 @@ - + @@ -182,7 +182,7 @@ - + diff --git a/build.xml b/build.xml index 421ea598d..54ce733ba 100644 --- a/build.xml +++ b/build.xml @@ -522,7 +522,7 @@ - @@ -639,26 +639,9 @@ - - - - - - - - - - - - - - - - - - + + + + - + - - + + diff --git a/src/etc/checkstyle/checkstyle-config b/src/etc/checkstyle/checkstyle-config index 624a0de95..0915579ea 100644 --- a/src/etc/checkstyle/checkstyle-config +++ b/src/etc/checkstyle/checkstyle-config @@ -28,6 +28,16 @@ + + + + + + + + + + @@ -37,7 +47,7 @@ @@ -62,13 +72,6 @@ - @@ -131,11 +134,11 @@ --> - - - - - + + + + +