Move extension annotations and enums to the API module
RENAME
asciidoctorj-core/src/main/java/org/asciidoctor/extension/Contexts.java
asciidoctorj-api/src/main/java/org/asciidoctor/extension/Contexts.java
@@ -7,7 +7,7 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
- * This annotation defines what type of blocks a {@link BlockProcessor} processes.
+ * This annotation defines what type of blocks a BlockProcessor processes.
* Example for a BlockProcessor that transforms all open blocks with the name {@code yell} to upper case:
* <pre><code>
* &#64;Name("yell")

RENAME
asciidoctorj-core/src/main/java/org/asciidoctor/extension/DefaultAttribute.java
asciidoctorj-api/src/main/java/org/asciidoctor/extension/DefaultAttribute.java
@@ -26,8 +26,8 @@ import java.lang.annotation.Target;
@Target(ElementType.TYPE)
public @interface DefaultAttribute {
- public String key();
+ String key();
- public String value();
+ String value();
}

RENAME
asciidoctorj-core/src/main/java/org/asciidoctor/extension/DefaultAttributes.java
asciidoctorj-api/src/main/java/org/asciidoctor/extension/DefaultAttributes.java
@@ -26,6 +26,6 @@ import java.lang.annotation.Target;
@Target(ElementType.TYPE)
public @interface DefaultAttributes {
- public DefaultAttribute[] value();
+ DefaultAttribute[] value();
}

RENAME
asciidoctorj-core/src/main/java/org/asciidoctor/extension/Format.java
asciidoctorj-api/src/main/java/org/asciidoctor/extension/Format.java
@@ -7,7 +7,7 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
- * This annotation defines how an {@link InlineMacroProcessor} is applied.
+ * This annotation defines how an InlineMacroProcessor is applied.
* Possible values are:
* <dl>
* <dt>{@link FormatType#LONG}</dt>
@@ -36,8 +36,8 @@ import java.lang.annotation.Target;
@Target(ElementType.TYPE)
public @interface Format {
- public FormatType value() default FormatType.CUSTOM;
+ FormatType value() default FormatType.CUSTOM;
- public String regexp() default "";
+ String regexp() default "";
}

RENAME
asciidoctorj-core/src/main/java/org/asciidoctor/extension/FormatType.java
asciidoctorj-api/src/main/java/org/asciidoctor/extension/FormatType.java
@@ -10,7 +10,7 @@ public enum FormatType {
private final String optionValue;
- private FormatType(String optionValue) {
+ FormatType(String optionValue) {
this.optionValue = optionValue;
}

RENAME
asciidoctorj-core/src/main/java/org/asciidoctor/extension/Location.java
asciidoctorj-api/src/main/java/org/asciidoctor/extension/Location.java
@@ -7,7 +7,7 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
- * This annotation defines the location where the content created by a {@link DocinfoProcessor} will be added.
+ * This annotation defines the location where the content created by a DocinfoProcessor will be added.
* <p>The following example will add a robots meta tag to the head element of the resulting HTML document:
* <pre>
* <ode>
@@ -40,6 +40,6 @@ import java.lang.annotation.Target;
@Target(ElementType.TYPE)
public @interface Location {
- public LocationType value() default LocationType.HEADER;
+ LocationType value() default LocationType.HEADER;
}

RENAME
asciidoctorj-core/src/main/java/org/asciidoctor/extension/LocationType.java
asciidoctorj-api/src/main/java/org/asciidoctor/extension/LocationType.java
@@ -10,7 +10,7 @@ public enum LocationType {
private final String optionValue;
- private LocationType(String optionValue) {
+ LocationType(String optionValue) {
this.optionValue = optionValue;
}

RENAME
asciidoctorj-core/src/main/java/org/asciidoctor/extension/Name.java
asciidoctorj-api/src/main/java/org/asciidoctor/extension/Name.java
@@ -7,8 +7,8 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
- * Use this annotation to define the block name handled by a {@link BlockProcessor}, or the macro name of a
- * {@link BlockMacroProcessor} or {@link InlineMacroProcessor}.
+ * Use this annotation to define the block name handled by a BlockProcessor, or the macro name of a
+ * BlockMacroProcessor or InlineMacroProcessor.
* <p>Applicable for:
* <table>
* <tr><td>BlockMacroProcessor</td><td>&#10003;</td></tr>

RENAME
asciidoctorj-core/src/main/java/org/asciidoctor/extension/PositionalAttributes.java
asciidoctorj-api/src/main/java/org/asciidoctor/extension/PositionalAttributes.java
@@ -45,6 +45,6 @@ import java.lang.annotation.Target;
@Target(ElementType.TYPE)
public @interface PositionalAttributes {
- public String[] value();
+ String[] value();
}

Move extension annotations and enums to the API module