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

JerseyInvocation should override toString() #4442

Merged
merged 1 commit into from
May 11, 2020

Conversation

thomasmey
Copy link

Override toString() with a sensible implementation.
So if you log a given JerseyInvocation object at least the request method and
URI of the contained requestContext is printed.

See issue #4270

@jansupol
Copy link
Contributor

Please see the wiki.

@thomasmey thomasmey force-pushed the i4270 branch 2 times, most recently from 7409d23 to e9740b1 Compare April 19, 2020 08:13
@jansupol
Copy link
Contributor

Please adjust a copyright year in the file.
Have you thought about using a StringBuilder in the toString method?

@thomasmey
Copy link
Author

Hi,

why use a StringBuilder here?
The JVM seems to optimise this itself anyway to a StringBuilder, the current code is more dense with the same performance:
see also https://stackoverflow.com/a/1532499

Override toString() with a sensible implementation.
So if you log a given JerseyInvocation object at least the request method and
URI of the contained requestContext is printed.

See issue eclipse-ee4j#4270

Signed-off-by: Thomas Meyer <[email protected]>
@jansupol jansupol merged commit 484e7f6 into eclipse-ee4j:master May 11, 2020
@jansupol jansupol added this to the 2.31 milestone May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants