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

[COMMON] Rewrite common.main by java17 toList and instanceof #1777

Merged
merged 3 commits into from
May 26, 2023

Conversation

Haser0305
Copy link
Collaborator

reated to #1686

return PrimitiveOuterClass.Primitive.newBuilder().setDouble(doubleV).build();
else if (v instanceof Boolean booleanV)
return PrimitiveOuterClass.Primitive.newBuilder().setBoolean(booleanV).build();
else if (v instanceof String stringV)
Copy link
Contributor

Choose a reason for hiding this comment

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

能否通通都叫 value? 不然現在的命名好詭異

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

好的

Copy link
Contributor

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

LGTM

@chia7712 chia7712 merged commit e3372db into opensource4you:main May 26, 2023
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.

2 participants