Skip to content

docs: use {@code} instead of {@link} for primitive types in factory Javadoc#128

Merged
Anush008 merged 1 commit into
qdrant:masterfrom
dhruv-15-03:docs/fix-javadoc-primitive-links
Jun 20, 2026
Merged

docs: use {@code} instead of {@link} for primitive types in factory Javadoc#128
Anush008 merged 1 commit into
qdrant:masterfrom
dhruv-15-03:docs/fix-javadoc-primitive-links

Conversation

@dhruv-15-03

Copy link
Copy Markdown
Contributor

What

Several factory classes document primitive parameter/source types with {@link long}, {@link int}, {@link double}, {@link boolean}, and {@link float}.

{@link} requires a reference to a program element (a class, method, or field), so it cannot resolve a primitive type. As written, these tags emit reference not found Javadoc warnings and render as broken links in the published API reference at https://qdrant.github.io/java-client.

This replaces {@link <primitive>} with {@code <primitive>}, the correct tag for rendering a primitive type name as inline code. Genuine class references (e.g. {@link Query}, {@link StartFrom}, {@link VectorInput}, {@link String}) are left unchanged.

Why

  • CONTRIBUTING.md asks that code build with no warnings and that docstrings be appropriate, since the API reference is published.
  • Removes 8 Javadoc warnings and fixes the corresponding broken links in the published docs.

Changes

8 occurrences across 5 files (comment-only, no behavior or API change):

  • PointIdFactory — point id from long
  • QueryFactory — query from long
  • StartFromFactory — start-from from float and int
  • ValueFactory — value from long, double, boolean
  • VectorInputFactory — vector input from long

…avadoc

{@link} requires a reference to a program element (class, method, or field), so
it cannot resolve a primitive type. Several factory classes use {@link long},
{@link int}, {@link double}, {@link boolean}, and {@link float}, which produce
"reference not found" Javadoc warnings and render as broken links in the
published API reference. Replace them with {@code <primitive>}, the correct tag
for an inline primitive type name. Real class links are left unchanged.
Copilot AI review requested due to automatic review settings June 20, 2026 18:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Anush008 Anush008 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @dhruv-15-03
LGTM!

@Anush008 Anush008 merged commit af7d89b into qdrant:master Jun 20, 2026
1 check passed
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.

3 participants