Commit 7c3d863c authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #14153 from hiroakiy:fix-string-concat

* pr/14153:
  Polish "Fix String concatenation in a loop"
  Fix String concatenation in a loop
parents 55406d91 000cb943
......@@ -317,11 +317,11 @@ public final class EndpointRequest {
public RequestMatcher antPath(RequestMatcherProvider matcherProvider,
String... parts) {
String pattern = this.prefix;
StringBuilder pattern = new StringBuilder(this.prefix);
for (String part : parts) {
pattern += part;
pattern.append(part);
}
return matcherProvider.getRequestMatcher(pattern);
return matcherProvider.getRequestMatcher(pattern.toString());
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment