Skip to content

apidoc error/warning fix (#3) #5623

Merged
ebarboni merged 1 commit intoapache:masterfrom
ebarboni:apidocsanitize3
Mar 10, 2023
Merged

apidoc error/warning fix (#3) #5623
ebarboni merged 1 commit intoapache:masterfrom
ebarboni:apidocsanitize3

Conversation

@ebarboni
Copy link
Copy Markdown
Contributor

@ebarboni ebarboni commented Mar 7, 2023

This is a third split of the big PR #4450.
using the following to have ant javadoc -Dmetabuild.branch=master -Dapidocfullcheck=true.

I will try to "rush" this part as it's now relaxed, to have a complete build and then do a second iteration to evaluate link as there is a lot of forward reference to no yet build apidoc.

@ebarboni ebarboni added the JavaDoc [ci] enable java/javadoc tests and build-javadoc target label Mar 7, 2023
@ebarboni ebarboni requested a review from mbien March 9, 2023 09:56
Copy link
Copy Markdown
Member

@mbien mbien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me. great work eric!

cp.<a href="ClassPath.html#addPropertyChangeListener-java.beans.PropertyChangeListener-"><font class="function-name">addPropertyChangeListener</font></a>(new <a href="@JDK@/java/beans/PropertyChangeListener.html"><font class="type">PropertyChangeListener</font></a>() {
<font class="keyword">public void</font> <font class="function-name">propertyChange</font>(<a href="@JDK@/java/beans/PropertyChangeEvent.html"><font class="type">PropertyChangeEvent</font></a> <font class="variable-name">evt</font>) {
<font class="keyword">if</font> (ClassPath.<a href="ClassPath.html#PROP_ROOTS"><font class="constant">PROP_ROOTS</font></a>.equals(evt.<a href="@JDK@/java/beans/PropertyChangeEvent.html#getPropertyName()"><font class="function-name">getPropertyName()</font></a>)) {
<font class="keyword">if</font> (ClassPath.<a href="ClassPath.html#PROP_ROOTS"><font class="constant">PROP_ROOTS</font></a>.equals(evt.<a href="@JDK@/java/beans/PropertyChangeEvent.html#getPropertyName--"><font class="function-name">getPropertyName()</font></a>)) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a question: what does the -- do? Couldn't find anything about it.

Copy link
Copy Markdown
Contributor Author

@ebarboni ebarboni Mar 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a bit of anticipation for this one but the anchor in javadoc is changing parenthesis to -. So it will make an invalid link or link to the page instead of method.

The nbbuild javadoc checker detect this.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah. so its like a TODO for you? :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's part of the phase 2.
Phase 1 is the clean up of javadoc itself to have no error and get all javadoc link ok (otherwise they need to move to our own management of modules/jdk links with replace.
Then in phase 2 the resulting checkstyle of apidoc need to be resolved to be sure to link to allowed url. each module have this check but in fact there is forward mention the only full apidoc check is important.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like the marvel universe just with javadoc basically

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ebarboni ebarboni merged commit cef11a8 into apache:master Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

JavaDoc [ci] enable java/javadoc tests and build-javadoc target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants