documentation/issue-45: Use inline {@return ...} tag for Javadoc summaries missing from the public API - #46
Conversation
* Use inline ``{@return ...}`` tag for Javadoc summaries missing from the public API.
|
|
||
| /** | ||
| * @return Factory for creating {@link PixelCanvas}. | ||
| * {@return factory for creating {@link PixelCanvas}} |
There was a problem hiding this comment.
Sentence casing changes, and punctuation in most of the classes changed.
|
Example I found online: /**
* {@return The configuration property value.}
* If the property does not exist in the system environment,
* this method will fallback to checking local properties.
*/
public String getProperty(String key) { ... }In this case I see why this exists. First sentence becomes the However if the block is this: /**
* {@return The configuration property value.}
*/
public String getProperty(String key) { ... }Then you just have the same thing twice, once in the summary and once in the |
|
Hi @Col-E , In response to your comments, take a look at theJDK 25 source for /**
* {@return the name of the entry}
*/
public String getName() {
return name;
}and compare it to the JavaDocs Method Summary
Method Details
Notice the So, what's gained by using
As far as the changes in case and punctuation: fair point, but it's not arbitrary. It's probably obvious I'm making these changes agentically. I'm happy to continue burning tokens to try to make things "better". If you don't think it's better, let me know. |


Closes #45
DockBuilding.leaf(String)'s doc had been copy-pasted frombranch(String)— corrected while I was already editing.