kwin commented on code in PR #180: URL: https://github.com/apache/maven-doxia/pull/180#discussion_r1437134790
########## doxia-core/src/main/java/org/apache/maven/doxia/index/IndexEntry.java: ########## @@ -53,10 +56,41 @@ public class IndexEntry { */ private List<IndexEntry> childEntries = new ArrayList<>(); + public enum Type { + /** + * Used for unknown types but also for the root entry + */ + UNKNOWN, + SECTION_1, + SECTION_2, + SECTION_3, + SECTION_4, + SECTION_5, + SECTION_6, + DEFINED_TERM, + FIGURE, + TABLE; + + static Type fromSectionLevel(int level) { + if (level < SECTION_1.ordinal() || level > SECTION_6.ordinal()) { Review Comment: Indeed, fixed in https://github.com/apache/maven-doxia/pull/180/commits/bc5b7ad641f5369ef14e4aa26529d49d01870e6e -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org