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

[3.x] Support for injection of ServerRequest and ServerResponse also via CDI #6798

Merged
merged 1 commit into from
May 10, 2023

Conversation

spericas
Copy link
Member

Support for injection of ServerRequest and ServerResponse also via CDI. New functional test to verify both types of injection.

…I. New functional test to verify both types of injection.
@spericas spericas added webserver cdi CDI 3.x Issues for 3.x version branch labels May 10, 2023
@spericas spericas added this to the 3.2.2 milestone May 10, 2023
@spericas spericas requested a review from ljnelson May 10, 2023 13:47
@spericas spericas self-assigned this May 10, 2023
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label May 10, 2023

@GET
public Response checkInjection() {
Objects.requireNonNull(serverRequest);
Copy link
Member

Choose a reason for hiding this comment

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

(You don't need any of these Objects.requireNonNull() statements since you would trigger "smart" NPEs at lines 54 and 55.)

Copy link
Member

@ljnelson ljnelson left a comment

Choose a reason for hiding this comment

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

One tiny comment but basically LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x Issues for 3.x version branch cdi CDI OCA Verified All contributors have signed the Oracle Contributor Agreement. webserver
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants