Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jetty 12 - Javadoc cleanup & new inspection profile #9165

Merged
merged 4 commits into from
Jan 19, 2023

Conversation

joakime
Copy link
Contributor

@joakime joakime commented Jan 12, 2023

Introduce importable intellij inspection profile for Javadoc.

Perform some javadoc cleanup as well.

@joakime joakime added this to the 12.0.x milestone Jan 12, 2023
@joakime joakime requested a review from gregw January 12, 2023 18:17
@joakime joakime self-assigned this Jan 12, 2023
@joakime
Copy link
Contributor Author

joakime commented Jan 12, 2023

The inspection profile for just javadoc, suitable for import, can be found in build/build-resources/intellij-javadoc-inspection.xml

It has more inspections than just the javadoc doclint does.

For example, here's an interesting one for "Mismatch between Javadoc and code" ...

intellij-javadoc-inspection-profile

The javadoc talks about a return type as if it's a boolean, but the return type is anything but.

* modified April 2001
* by Iris Van den Broeke, Daniel Deville
*/

Copy link
Contributor Author

@joakime joakime Jan 12, 2023

Choose a reason for hiding this comment

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

This exact block is a duplicate of what is already present a few lines above.

@@ -129,7 +128,7 @@ public boolean onClosed(CloseStatus closeStatus)
* </p>
* <p>
* This should only be called if there is an error directly before the call to
* {@link WebSocketCoreSession#closeConnection(CloseStatus, Callback)}.
* {@code WebSocketCoreSession.closeConnection(CloseStatus, Callback)}.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the .closeConnection(CloseStatus, Callback) is not accessible from here and cannot be a javadoc link.

* "foo.tar.gz" "gz"
* "foo.bar" "bar"
* "foo." ""
* "foo" null
* ".bar" null
* null null
* }</code>
* }</pre>
Copy link
Contributor Author

@joakime joakime Jan 12, 2023

Choose a reason for hiding this comment

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

This preserves the LF and whitespace

@joakime joakime marked this pull request as ready for review January 16, 2023 19:45
@joakime
Copy link
Contributor Author

joakime commented Jan 16, 2023

@gregw this good to merge? (if so, go ahead and do it on your timezone)

Copy link
Contributor

@gregw gregw left a comment

Choose a reason for hiding this comment

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

This is good on it's own, but we need to do more to document how to use this (and the style guides and the check style). Perhaps CONTRIBUTING.md should have some instructions.

Perhaps @gregpoulos you can put this on your list of documentations? Actually, working of fixing some of the javadoc issues would also be a good way for you to get a tour of the code.

@gregpoulos
Copy link
Contributor

@gregw Yep, I'll add this to my list of things to look at!

@joakime joakime merged commit a37b852 into jetty-12.0.x Jan 19, 2023
@joakime joakime deleted the fix/jetty-12.0.x/javadoc-inspection branch January 19, 2023 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants