[ 
https://issues.apache.org/jira/browse/DOXIA-772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17909357#comment-17909357
 ] 

Michael Osipov commented on DOXIA-772:
--------------------------------------

Agree, let's make it consistent. 0 makes no sense to me.

> AbstractSink.sectionTitle() calls Sink.sectionTitle(...) method with invalid 
> level argument
> -------------------------------------------------------------------------------------------
>
>                 Key: DOXIA-772
>                 URL: https://issues.apache.org/jira/browse/DOXIA-772
>             Project: Maven Doxia
>          Issue Type: Bug
>            Reporter: Konrad Windszus
>            Priority: Major
>
> According to 
> https://maven.apache.org/doxia/doxia/doxia-sink-api/apidocs/org/apache/maven/doxia/sink/Sink.html#sectionTitle-int-org.apache.maven.doxia.sink.SinkEventAttributes-
>  the {{level}} argument must be between 1 and 6. However 
> {{AbstractSink.sectionTitle()}} calls it with {{level}} being 0 
> (https://github.com/apache/maven-doxia/blob/ef20da287e49dbbe4ac92a82e7593b3c897ce126/doxia-core/src/main/java/org/apache/maven/doxia/sink/impl/AbstractSink.java#L84)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to