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

All Pico services should default to a lesser than DEFAULT_WEIGHT #6590

Merged
merged 4 commits into from
Apr 13, 2023

Conversation

trentjeff
Copy link
Member

@trentjeff trentjeff commented Apr 11, 2023

Fix for issue#6583.

@trentjeff trentjeff added 4.x Version 4.x declarative Helidon Declarative labels Apr 11, 2023
@trentjeff trentjeff added this to the 4.0.0-M1 milestone Apr 11, 2023
@trentjeff trentjeff self-assigned this Apr 11, 2023
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Apr 11, 2023
*/
double DEFAULT_WEIGHT = Weighted.DEFAULT_WEIGHT;
double DEFAULT_PICO_WEIGHT = Weighted.DEFAULT_WEIGHT;
Copy link
Member

Choose a reason for hiding this comment

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

I do not see the -1 mentioned in the javadoc

Copy link
Member Author

Choose a reason for hiding this comment

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

Great catch! lol

Copy link
Member Author

Choose a reason for hiding this comment

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

pushed


/**
* Service-loaded provider for {@link io.helidon.builder.config.spi.ConfigResolverProvider}.
*/
@Weight(Weighted.DEFAULT_WEIGHT)
@Weight(io.helidon.pico.api.ServiceInfoBasics.DEFAULT_PICO_WEIGHT)
Copy link
Member

Choose a reason for hiding this comment

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

Why is it fully qualified? There should not be a naming conflict.

Copy link
Member

Choose a reason for hiding this comment

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

Seems to be in all usages

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it was just easier to do it that way. Is that somehow a problem? I did the same for the javadoc.

Copy link
Member

Choose a reason for hiding this comment

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

In Javadoc, you should use fully qualified. In code, only when you have conflicting types

Copy link
Member Author

Choose a reason for hiding this comment

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

pushed

@trentjeff trentjeff requested a review from tomas-langer April 12, 2023 18:03

/**
* Service-loaded provider for {@link io.helidon.builder.config.spi.ConfigResolverProvider}.
*/
@Weight(Weighted.DEFAULT_WEIGHT)
@Weight(io.helidon.pico.api.ServiceInfoBasics.DEFAULT_PICO_WEIGHT)
Copy link
Member

Choose a reason for hiding this comment

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

In Javadoc, you should use fully qualified. In code, only when you have conflicting types

@trentjeff trentjeff merged commit abd96ba into helidon-io:main Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x declarative Helidon Declarative OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants