Skip to content

docs: DOC-1179: JS API - Wrapper class docs#7775

Open
elijahpetty wants to merge 1 commit intodeephaven:mainfrom
elijahpetty:DOC-1179
Open

docs: DOC-1179: JS API - Wrapper class docs#7775
elijahpetty wants to merge 1 commit intodeephaven:mainfrom
elijahpetty:DOC-1179

Conversation

@elijahpetty
Copy link
Contributor

No description provided.

@elijahpetty elijahpetty requested a review from niloc132 March 9, 2026 18:34
@elijahpetty elijahpetty self-assigned this Mar 9, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

No docs changes detected for 6a36baf

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates JS client API wrapper classes with clearer Javadoc to improve generated documentation and clarify JS-facing conversion helpers.

Changes:

  • Added/expanded Javadoc on numeric wrappers (LongWrapper, BigIntegerWrapper, BigDecimalWrapper) covering parsing, numeric conversion, and valueOf()/toString().
  • Added Javadoc clarifying DateWrapper epoch-nanos semantics and JS Date conversions.
  • Added Javadoc to LocalDateWrapper describing field getters and string formatting.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
web/client-api/src/main/java/io/deephaven/web/client/api/LongWrapper.java Adds class/method Javadoc for parsing and JS-friendly conversions (asNumber, valueOf, toString).
web/client-api/src/main/java/io/deephaven/web/client/api/LocalDateWrapper.java Documents valueOf, date component getters, and toString formatting.
web/client-api/src/main/java/io/deephaven/web/client/api/DateWrapper.java Adds class-level and method Javadoc for nanos timestamps and JsDate conversions.
web/client-api/src/main/java/io/deephaven/web/client/api/BigIntegerWrapper.java Documents ofString, conversions, and equality/hash semantics.
web/client-api/src/main/java/io/deephaven/web/client/api/BigDecimalWrapper.java Documents ofString, conversions, and equality/hash semantics.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +16 to +21
* This type extends {@link LongWrapper} and inherits the following conversions:
* <ul>
* <li>{@link LongWrapper#asNumber()} for a numeric representation</li>
* <li>{@link LongWrapper#toString()} and {@link LongWrapper#valueOf()} for string representations</li>
* <li>{@link LongWrapper#ofString(String)} for parsing</li>
* </ul>
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

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

The class Javadoc says DateWrapper “inherits … LongWrapper#ofString(String) for parsing”, but ofString returns a LongWrapper, not a DateWrapper. In JS, calling DateWrapper.ofString(...) would produce an instance without asDate(), which is surprising. Consider either adding a DateWrapper.ofString(String) that returns a DateWrapper, or adjusting the Javadoc to avoid implying a parsing API specific to DateWrapper.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants