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 d6c13068..8346ec73 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 @@ package org.apache.ivy.asciidoc; 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 f2f39f6b..7bd37a41 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 b11a1a07..59b9192f 100644 --- a/build.xml +++ b/build.xml @@ -526,7 +526,7 @@ - @@ -643,26 +643,9 @@ - - - - - - - - - - - - - - - - - - + + + + - + - - + + diff --git a/src/etc/checkstyle/checkstyle-config b/src/etc/checkstyle/checkstyle-config index e797e5cb..85aeb1e5 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 @@ - @@ -134,11 +137,11 @@ --> - - - - - + + + + +