Deprecate Section#getNumber()
MODIFY
asciidoctorj-api/src/main/java/org/asciidoctor/ast/Section.java
asciidoctorj-api/src/main/java/org/asciidoctor/ast/Section.java
@@ -22,8 +22,10 @@ public interface Section extends StructuralNode {
int number();
/**
+ * @deprecated Please use {@link #getNumeral()}
* @return the number of this section within the parent block
*/
+ @Deprecated
int getNumber();
/**

MODIFY
asciidoctorj-core/src/main/java/org/asciidoctor/jruby/ast/impl/SectionImpl.java
asciidoctorj-core/src/main/java/org/asciidoctor/jruby/ast/impl/SectionImpl.java
@@ -27,6 +27,7 @@ public class SectionImpl extends StructuralNodeImpl implements Section {
}
@Override
+ @Deprecated
public int getNumber() {
return getInt("number");
}

Deprecate Section#getNumber()