Skip to content

Commit a4381dd

Browse files
committed
Merge remote-tracking branch 'upstream/master' into status
2 parents 06afc9e + e5c51e9 commit a4381dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

http-generator-core/src/main/java/io/avaje/http/generator/core/MethodReader.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,9 @@ public void buildApiDocumentation(ProcessingContext ctx) {
245245
}
246246

247247
public List<String> roles() {
248-
methodRoles.addAll(bean.roles());
249-
return methodRoles;
248+
var roles = new ArrayList<>(methodRoles);
249+
roles.addAll(bean.roles());
250+
return roles;
250251
}
251252

252253
public boolean isWebMethod() {

0 commit comments

Comments
 (0)