-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[OO] Javadoc & readibility improvements #12216
Conversation
@implSpec
tags
Thought: Like we have priority classifications for issues, should we have labels for PRs as well such as "non-blocking", "non-breaking", "non-urgent", "low priority", etc.? |
Some reading about this tag: https://nipafx.dev/javadoc-tags-apiNote-implSpec-implNote/ |
* <b>Precondition 3:</b> Run this test ONLY on numeric Citation Styles.</p> | ||
* | ||
* @implSpec 1. Assumes that {@link CitationStyleGenerator#generateBibliography(List, String, CitationStyleOutputFormat, BibDatabaseContext, BibEntryTypesManager) generateBibliography} works as expected.<br> | ||
* 2. Assumes that the method {@link CSLFormatUtils#transformHTML(String) transformHTML} works as expected.<br> | ||
* 3. Run this test ONLY on numeric Citation Styles.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe convert to Markdown (///
instead of *
) to have that rendered proply (Otherwise, you should use <ol>
and <li>
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@koppor I tried to generate the javadoc using the gradle task, but it failed due to the following two errors (something related to module export): D:\git-repositories\JabRef\src\main\java\org\jabref\gui\search\GlobalSearchBar.java:68: error: package impl.org.controlsfx.skin is not visible
import impl.org.controlsfx.skin.AutoCompletePopup;
^
(package impl.org.controlsfx.skin is declared in module org.controlsfx.controls, which does not export it to module org.jabref) D:\git-repositories\JabRef\src\main\java\org\jabref\gui\util\CustomRatingSkin.java:7: error: package impl.org.controlsfx.skin is not visible
import impl.org.controlsfx.skin.RatingSkin;
^
(package impl.org.controlsfx.skin is declared in module org.controlsfx.controls, which does not export it to module org.jabref) cc: @calixtus |
You need to modify module-info.java, but don't ask me how, it's always try and error with me, I did not yet deep dive into java module system. |
You need to add the add-export calls for the javadoc task Lines 596 to 598 in 0dad3e1
This was from an old issue java9-modularity/gradle-modules-plugin#170 |
@Siedlerchr ready for merge |
* Add `@implSpec` tags, clean docs * Fix variable name, link * Fix more javadoc * Add `controlsfx.skin` module export * Fix rendering list of requirements * Rename variables (bibliography) * Fix method name in comment
Recently I learnt about
@implSpec
tags which are used to specify requirements/preconditions for methods.This helped clean the documentation of my code a bit.
The tag shows up as "Implementation Requirements:" in javadoc as follows:
Additional:
javadoc
Mandatory checks
Change inCHANGELOG.md
described in a way that is understandable for the average user (if change is visible to the user)Tests created for changes (if applicable)Manually tested changed features in running JabRef (always required)