Skip to content

fix: remove malformed javadoc to fix -Werror build failure (#7393)#7395

Closed
Senrian wants to merge 4 commits intoTheAlgorithms:masterfrom
Senrian:fix/javadoc-warnings-7393
Closed

fix: remove malformed javadoc to fix -Werror build failure (#7393)#7395
Senrian wants to merge 4 commits intoTheAlgorithms:masterfrom
Senrian:fix/javadoc-warnings-7393

Conversation

@Senrian
Copy link
Copy Markdown
Contributor

@Senrian Senrian commented Apr 22, 2026

Removes malformed javadoc that causes build failures with -Werror.

Changes:

  • AnyBaseToAnyBase.java: Fix * * @author to proper javadoc format
  • ReverseString.java: Fix * * @param to proper javadoc format

Fixes #7393

penggaolai and others added 4 commits April 4, 2026 04:15
When searching for a non-null key in an array that contains null elements,
the sentinel linear search would throw a NullPointerException because it
called array[i].compareTo(key) without checking if array[i] is null.

Added null check for array[i] in the while loop condition to prevent NPE
and return the correct index when array elements themselves are null.

Issue: TheAlgorithms#7318 (related)
@Senrian Senrian closed this Apr 22, 2026
@Senrian Senrian deleted the fix/javadoc-warnings-7393 branch April 22, 2026 10:55
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.

Build fails because existing documentation warnings are treated as errors by -Werror

3 participants