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

WELD-1752 servlet api abstraction for javax.servlet.ServletRequest#isAsy... #674

Closed
wants to merge 1 commit into from

Conversation

tremes
Copy link
Contributor

@tremes tremes commented Sep 30, 2014

...ncStarted

@weld-tester
Copy link

Triggering build using a merge of 20df0bb on branch 2.2:
Private: https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Weld-2.x-pull-player-executor-osprey/

@weld-tester
Copy link

@weld-tester
Copy link

Triggering build using a merge of 09b4474 on branch 2.2:
Private: https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Weld-2.x-pull-player-executor-osprey/

@weld-tester
Copy link


boolean isAsyncStarted;
try {
Method isAsyncStartedMethod = servletRequestClass.getMethod(IS_ASYNC_STARTED_METHOD_NAME);
Copy link
Member

Choose a reason for hiding this comment

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

Possible optimization - do not store a reference to Class but rather directly to the method. Then, you no longer need to call getMethod() on each access.

@weld-tester
Copy link

1 similar comment
@weld-tester
Copy link

@weld-tester
Copy link

Triggering build using a merge of ccb337e on branch 2.2:
Private: https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Weld-2.x-pull-player-executor-osprey/

@weld-tester
Copy link


private final boolean asyncSupported;

private Method isAsyncStartedMethod;
Copy link
Member

Choose a reason for hiding this comment

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

this should be a final field

@weld-tester
Copy link

Triggering build using a merge of 9ecb70a on branch 2.2:
Private: https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Weld-2.x-pull-player-executor-osprey/

@weld-tester
Copy link

@jharting
Copy link
Member

jharting commented Oct 1, 2014

Merged, thanks!

@jharting jharting closed this Oct 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants