We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b06090 commit 082f3bdCopy full SHA for 082f3bd
http-generator-core/src/main/java/io/avaje/http/generator/core/MethodReader.java
@@ -338,7 +338,9 @@ public void buildApiDocumentation() {
338
339
public List<String> roles() {
340
final var roles = new ArrayList<>(methodRoles);
341
- roles.addAll(bean.roles());
+ if (roles.isEmpty()) {
342
+ roles.addAll(bean.roles());
343
+ }
344
return roles;
345
}
346
@@ -521,7 +523,7 @@ private List<PathSegments.Segment> namedSegments() {
521
523
522
524
private boolean allArgParamNames() {
525
for (int i = 0; i < params.size(); i++) {
- if (!params.get(i).name().equals("arg" + i)) {
526
+ if (!("arg" + i).equals(params.get(i).name())) {
527
return false;
528
529
0 commit comments