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

Apply idea code analysis suggestions Http module #2185

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

mocenas
Copy link
Contributor

@mocenas mocenas commented Nov 12, 2024

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.

  • Bug fix (non-breaking change which fixes an issue)
  • Dependency update
  • Refactoring
  • Backport
  • New scenario (non-breaking change which adds functionality)
  • This change requires a documentation update
  • This change requires execution against OCP (use run tests phrase in comment)

Checklist:

  • Methods and classes used in PR scenarios are meaningful
  • Commits are well encapsulated and follow the best practices

@@ -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 -> {
Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Contributor Author

@mocenas mocenas left a 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 -> {
Copy link
Contributor Author

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.

@gtroitsk gtroitsk merged commit e022e14 into quarkus-qe:main Nov 14, 2024
7 checks passed
@mocenas mocenas deleted the codestyle_changes_http branch November 14, 2024 12:49
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.

2 participants