question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SpringdocRouteBuilder redundant parameter

See original GitHub issue

During nesting, there is a redunant operation builder consumer, which I always leave empty. Does that have any purpose in mind?

SpringdocRouteBuilder.route()
          .nest(
                  RequestPredicates.path("/users").and(RequestPredicates.accept(APPLICATION_JSON)),
                  Supplier {
                    SpringdocRouteBuilder.route()
                            .GET("", userHandler::getById, Consumer { it.beanClass(UserService::class.java).beanMethod("getById") })
                            ...
                            .build()
                  },
                  {} // what's the point of that?
          ).build()

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bnasslahsencommented, Dec 4, 2020

Nothing prevents you from submitting a PR, if you estimate it will be more handy from developer perspective.

0reactions
bnasslahsencommented, Dec 13, 2020

@Sam-Kruglov,

This should work out of the box. If it’s not the case, there is an issue there…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redundant parameter in Spring controller method?
I have createForm, which is displayed to user. As you can presume it is empty form and the user has to fill it...
Read more >
IntelliJ IDEA 2022.3 EAP 1 (223.4884.65 build) Release Notes
SpringdocRouteBuilder.route ... Feature, IDEA-224760, Add quick fix: remove redundant arguments to call constructor. Feature, IDEA-220239, Enable Reuse ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found