-
Notifications
You must be signed in to change notification settings - Fork 34
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
Apply idea code analysis suggestions Http module #2185
Conversation
...-advanced-reactive/src/main/java/io/quarkus/ts/http/advanced/reactive/MediaTypeResource.java
Outdated
Show resolved
Hide resolved
...advanced-reactive/src/test/java/io/quarkus/ts/http/advanced/reactive/DownloadResourceIT.java
Outdated
Show resolved
Hide resolved
@@ -33,13 +33,11 @@ public Uni<GrpcReflectionResponse> reflectionServiceInfo() { | |||
.setListServices("").build(); | |||
Uni<ServerReflectionResponse> serverReflectionResponse = invoke(request); | |||
|
|||
Uni<GrpcReflectionResponse> grpcReflectionResponse = serverReflectionResponse.map(response -> { | |||
return serverReflectionResponse.map(response -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally I most like original version, it is easier to read what method returns. But I haven't a strong opinion on this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO this method is short and what is returned is easily readable in method declaration. IMHO that is sufficient. But I also have no strong opinion.
321a854
to
a090af8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requested changes done.
@@ -33,13 +33,11 @@ public Uni<GrpcReflectionResponse> reflectionServiceInfo() { | |||
.setListServices("").build(); | |||
Uni<ServerReflectionResponse> serverReflectionResponse = invoke(request); | |||
|
|||
Uni<GrpcReflectionResponse> grpcReflectionResponse = serverReflectionResponse.map(response -> { | |||
return serverReflectionResponse.map(response -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO this method is short and what is returned is easily readable in method declaration. IMHO that is sufficient. But I also have no strong opinion.
Summary
Apply code changes from idea to Http module. Mostly fixes unnecessary imports, conversions, throws clause, classes in wrong files etc.
There are also several instances of deprecated APIs, but since that will require more complex changes I want to put that into separate PR.
Please select the relevant options.
run tests
phrase in comment)Checklist: