Skip to content

Revert "Enable Javadoc doclint errors"#2826

Merged
riccardobl merged 1 commit into
masterfrom
revert-2799-javadoc-doclint-errors
May 28, 2026
Merged

Revert "Enable Javadoc doclint errors"#2826
riccardobl merged 1 commit into
masterfrom
revert-2799-javadoc-doclint-errors

Conversation

@riccardobl
Copy link
Copy Markdown
Member

Reverts #2799

@riccardobl riccardobl merged commit 5d7ee66 into master May 28, 2026
8 checks passed
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request modifies Javadoc configurations in the Gradle build files to disable strict doclint checks and updates various Javadoc comments across the codebase. The reviewer identified several issues introduced in the Javadoc updates, including mismatched @param tag names in TechniqueDefLogic.java and BufferObject.java, an invalid @param tag on a no-argument constructor in StructStd140BufferObject.java, and invalid HTML formatting (using <li> directly inside <p> without a wrapping <ul> tag) in Action.java. Code suggestions have been provided to fix these Javadoc issues.

* @param geometry The geometry to render
* @param lights Lights which influence the geometry.
* @param lastBindUnits the most recently used bind units
* @param lastTexUnit the index of the most recently used texture unit
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The @param tag name lastTexUnit does not match the method parameter name lastBindUnits. This will cause a Javadoc warning or error. Please correct the @param tag to match the parameter name.

Suggested change
* @param lastTexUnit the index of the most recently used texture unit
* @param lastBindUnits the index of the most recently used texture unit
References
  1. When identifying missing or incorrect Javadoc, provide a code suggestion to fix it directly.

* Set AccessHint to hint the renderer on how to access this data.
*
* @param accessHint the access hint
* @param natureHint
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The @param tag name natureHint does not match the method parameter name accessHint. This will cause a Javadoc warning or error. Please correct the @param tag to match the parameter name.

Suggested change
* @param natureHint
* @param accessHint the access hint
References
  1. When identifying missing or incorrect Javadoc, provide a code suggestion to fix it directly.

/**
* Create an empty Struct buffer
*
* @param str
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

A @param str tag has been added to the Javadoc for a constructor that takes no parameters. This is incorrect and will cause a Javadoc error. Please remove this @param tag.

Suggested change
* @param str
*
References
  1. When identifying missing or incorrect Javadoc, provide a code suggestion to fix it directly.

Comment on lines +42 to +47
* <p>
* Notes :
* <li> The sequence of tweens is determined by {@link com.jme3.anim.tween.Tweens} utility class and the {@link BaseAction} interpolates that sequence. </li>
* <li> This implementation mimics the {@link com.jme3.anim.tween.AbstractTween}, but it delegates the interpolation method {@link Tween#interpolate(double)}
* to the {@link BlendableAction} class. </li>
* </ul>
* </p>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The Javadoc formatting has been changed to use <li> tags directly inside a <p> tag. This is invalid HTML, as <li> elements must be children of <ul>, <ol>, or <menu> elements. This will likely cause rendering issues in the generated Javadoc.

To fix this, you should wrap the <li> elements in a <ul> tag. The original structure was correct in this regard. If the goal was to fix a doclint warning, a better approach would be to wrap the heading and the list in a single <p> tag.

Suggested change
* <p>
* Notes :
* <li> The sequence of tweens is determined by {@link com.jme3.anim.tween.Tweens} utility class and the {@link BaseAction} interpolates that sequence. </li>
* <li> This implementation mimics the {@link com.jme3.anim.tween.AbstractTween}, but it delegates the interpolation method {@link Tween#interpolate(double)}
* to the {@link BlendableAction} class. </li>
* </ul>
* </p>
* <p>Notes:
* <ul>
* <li> The sequence of tweens is determined by {@link com.jme3.anim.tween.Tweens} utility class and the {@link BaseAction} interpolates that sequence. </li>
* <li> This implementation mimics the {@link com.jme3.anim.tween.AbstractTween}, but it delegates the interpolation method {@link Tween#interpolate(double)}
* to the {@link BlendableAction} class. </li>
* </ul></p>
References
  1. When identifying missing or incorrect Javadoc, provide a code suggestion to fix it directly.

@riccardobl riccardobl deleted the revert-2799-javadoc-doclint-errors branch May 28, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant