Skip to content

Commit dd9209c

Browse files
committed
Merge branch '2.0.x'
2 parents f8cffaf + 7c3d863 commit dd9209c

File tree

1 file changed

+3
-3
lines changed
  • spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/security/servlet

1 file changed

+3
-3
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/security/servlet/EndpointRequest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,11 +317,11 @@ private static class RequestMatcherFactory {
317317

318318
public RequestMatcher antPath(RequestMatcherProvider matcherProvider,
319319
String... parts) {
320-
String pattern = this.prefix;
320+
StringBuilder pattern = new StringBuilder(this.prefix);
321321
for (String part : parts) {
322-
pattern += part;
322+
pattern.append(part);
323323
}
324-
return matcherProvider.getRequestMatcher(pattern);
324+
return matcherProvider.getRequestMatcher(pattern.toString());
325325
}
326326

327327
}

0 commit comments

Comments
 (0)