Skip to content

Commit 17b2b8a

Browse files
izeyejhoeller
authored andcommitted
Remove an unnecessary local variable
1 parent 262c702 commit 17b2b8a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,7 @@ public RequestMappingInfo combine(RequestMappingInfo other) {
195195
@Nullable
196196
private String combineNames(RequestMappingInfo other) {
197197
if (this.name != null && other.name != null) {
198-
String separator = "#";
199-
return this.name + separator + other.name;
198+
return this.name + "#" + other.name;
200199
}
201200
else if (this.name != null) {
202201
return this.name;

0 commit comments

Comments
 (0)