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

Remove unsafe cast to mutable extension catalog #22503

Merged
merged 1 commit into from
Dec 24, 2021

Conversation

glefloch
Copy link
Member

@glefloch glefloch commented Dec 23, 2021

This makes sure the catalog is mutable by explicitly converting it.

close #22498
close #22496

@quarkus-bot quarkus-bot bot added area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/platform Issues related to definition and interaction with Quarkus Platform labels Dec 23, 2021
catalogs.add(memberCatalog);
ExtensionCatalog.Mutable mutableMemberCatalog = memberCatalog.mutable();
mutableMemberCatalog.setMetadata(metadata);
catalogs.add(mutableMemberCatalog);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
catalogs.add(mutableMemberCatalog);
catalogs.add(mutableMemberCatalog.build());

Copy link
Member Author

Choose a reason for hiding this comment

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

right, fixed !

@aloubyansky aloubyansky merged commit 15568fa into quarkusio:main Dec 24, 2021
@quarkus-bot quarkus-bot bot added this to the 2.7 - main milestone Dec 24, 2021
@glefloch glefloch deleted the fix/22498 branch January 5, 2022 13:50
@gsmet gsmet modified the milestones: 2.7 - main, 2.6.2.Final Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/platform Issues related to definition and interaction with Quarkus Platform
Projects
None yet
5 participants