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

Use JDK 17 syntax #38

Merged
merged 6 commits into from
Sep 13, 2024
Merged

Use JDK 17 syntax #38

merged 6 commits into from
Sep 13, 2024

Conversation

hamnis
Copy link
Owner

@hamnis hamnis commented Sep 12, 2024

JValue is now a real sealed interface
Use records for implementations of JValue except for JNull which is an enum

Change fold to use a Visitor instead
Printer is now simpler, most logic is now within the folder, should allow us to have multiple implementors of state.

JValue is now a real sealed interface
Use records for implementations of JValue except for JNull which is an enum

Change fold to use a Visitor instead
Printer is now simpler, most logic is now within the folder,
should allow us to have multiple implementors of state.
if (o == null || getClass() != o.getClass()) return false;
JString jString = (JString) o;
return Objects.equals(value, jString.value);
default String scalarToString() {
Copy link
Owner Author

Choose a reason for hiding this comment

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

we could move this to implementation classes to avoid throwing...

@hamnis hamnis merged commit 8a583a7 into master Sep 13, 2024
3 checks passed
@hamnis hamnis deleted the jdk17 branch September 13, 2024 09:09
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