Browse Source

Remove an unnecessary local variable

pull/2025/head
Johnny Lim 6 years ago committed by Juergen Hoeller
parent
commit
17b2b8af86
  1. 3
      spring-webflux/src/main/java/org/springframework/web/reactive/result/method/RequestMappingInfo.java

3
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/RequestMappingInfo.java

@ -195,8 +195,7 @@ public final class RequestMappingInfo implements RequestCondition<RequestMapping @@ -195,8 +195,7 @@ public final class RequestMappingInfo implements RequestCondition<RequestMapping
@Nullable
private String combineNames(RequestMappingInfo other) {
if (this.name != null && other.name != null) {
String separator = "#";
return this.name + separator + other.name;
return this.name + "#" + other.name;
}
else if (this.name != null) {
return this.name;

Loading…
Cancel
Save