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

Constructors are now intercepted with appropriate interceptors only. #6648

Merged

Conversation

tomas-langer
Copy link
Member

@tomas-langer tomas-langer commented Apr 18, 2023

Resolves #6632

Added tests for additional use cases (commented out the failing ones + added issue)

Created #6647

Added tests for additional use cases (commented out the failing ones + added issue)
@tomas-langer tomas-langer added the declarative Helidon Declarative label Apr 18, 2023
@tomas-langer tomas-langer requested a review from trentjeff April 18, 2023 21:20
@tomas-langer tomas-langer self-assigned this Apr 18, 2023
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Apr 18, 2023
@@ -118,18 +118,18 @@ public static <T> List<Provider<T>> mergeAndCollapse(List<Provider<T>>... lists)

@Override
public V proceed(Object... args) {
if (!interceptorIterator.hasNext()) {
if (interceptorIterator.hasNext()) {
Copy link
Member Author

Choose a reason for hiding this comment

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

it is easier to reason about an if statement if negation is not used (and I had to debug this method a lot).
This is a best practice we use in Helidon, fixed this instance as PR is related.

Reverted template to create multiline
@tomas-langer tomas-langer merged commit bf38bbf into helidon-io:main Apr 18, 2023
@tomas-langer tomas-langer deleted the 6632-constructor-interceptino branch April 18, 2023 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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