Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish up JavaDoc for the 'Json' classes #12609

Merged
merged 3 commits into from
Aug 28, 2023

Conversation

sbabcoc
Copy link
Contributor

@sbabcoc sbabcoc commented Aug 24, 2023

Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it

Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.

Description

This PR finishes up the JavaDoc comments for the classes and methods of Selenium's Json API's.
These were started in PR #12584 and got merge before I was finished.

Motivation and Context

The Selenium Json API is a very useful built-in mechanism for consuming and producing JSON representations of Java objects. This facility can be very useful, especially when interacting with GraphQL web service endpoints, but the lack of documentation can result in considerable confusion.
This PR adds JavaDoc headers to classes, methods, and defined constants to assist folks in using the Selenium Json API in their own code.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@sbabcoc sbabcoc force-pushed the pr/add-json-api-javadoc-3 branch 2 times, most recently from 85c556f to 29cfe26 Compare August 24, 2023 22:03
java/src/org/openqa/selenium/json/JsonOutput.java Outdated Show resolved Hide resolved

this.stack = new ArrayDeque<>();
this.stack.addFirst(new Empty());
this.stack.addFirst(new Root());
Copy link
Member

Choose a reason for hiding this comment

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

This looks suspicious.... Were things failing? Or is this part of the state-machine work?

Copy link
Contributor Author

@sbabcoc sbabcoc Aug 25, 2023

Choose a reason for hiding this comment

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

No, this just seems like a more descriptive name for the role this class plays. I can revert this change if you prefer.

java/src/org/openqa/selenium/json/JsonOutput.java Outdated Show resolved Hide resolved
java/src/org/openqa/selenium/json/JsonOutput.java Outdated Show resolved Hide resolved
java/src/org/openqa/selenium/json/JsonOutput.java Outdated Show resolved Hide resolved
@sbabcoc sbabcoc force-pushed the pr/add-json-api-javadoc-3 branch 3 times, most recently from 313cc7f to cb7f657 Compare August 25, 2023 17:43
scripts/format.ps1 Outdated Show resolved Hide resolved
@sbabcoc sbabcoc force-pushed the pr/add-json-api-javadoc-3 branch 10 times, most recently from 94b32db to 1549519 Compare August 28, 2023 08:56
@sbabcoc sbabcoc force-pushed the pr/add-json-api-javadoc-3 branch from 1549519 to 9f0f091 Compare August 28, 2023 09:09
Copy link
Member

@diemol diemol left a comment

Choose a reason for hiding this comment

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

Thank you, @sbabcoc!

@diemol diemol merged commit 327785f into SeleniumHQ:trunk Aug 28, 2023
49 of 52 checks passed
@sbabcoc sbabcoc deleted the pr/add-json-api-javadoc-3 branch September 9, 2023 23:29
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