Skip to content

Polish JsonUtil#55364

Open
geoand wants to merge 1 commit into
quarkusio:mainfrom
geoand:polish-JsonUtil
Open

Polish JsonUtil#55364
geoand wants to merge 1 commit into
quarkusio:mainfrom
geoand:polish-JsonUtil

Conversation

@geoand

@geoand geoand commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@quarkus-bot

quarkus-bot Bot commented Jul 9, 2026

Copy link
Copy Markdown

Thanks for your pull request!

Your pull request does not follow our editorial rules. Could you have a look?

  • description should not be empty, describe your intent or provide links to the issues this PR is fixing (using Fixes #NNNNN) or changelogs

This message is automatically generated by a bot.

val = (new JsonObject((Map) val)).copy();
} else if (val instanceof List) {
val = (new JsonArray((List) val)).copy();
} else if (val instanceof Buffer) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is not needed because instanceof Shareable already makes the check

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.

Great catch! Yes, we were a bit fast when we migrated that code to Vert.x 5.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I would never have seen if it were not for IntelliJ flagging it :)

val = (new JsonObject((Map) val)).copy();
} else if (val instanceof List) {
val = (new JsonArray((List) val)).copy();
} else if (val instanceof Buffer) {

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.

Great catch! Yes, we were a bit fast when we migrated that code to Vert.x 5.

@geoand geoand added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Jul 9, 2026
@geoand geoand force-pushed the polish-JsonUtil branch from f4ca0d8 to 0ff3b02 Compare July 9, 2026 10:56
@geoand geoand changed the title Polish JsonUtil Polish JsonUtil Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/vertx triage/waiting-for-ci Ready to merge when CI successfully finishes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants