Remove an unnecessary local variable

This commit is contained in:
Johnny Lim
2018-11-22 20:56:28 +09:00
committed by Juergen Hoeller
parent 262c702da4
commit 17b2b8af86

View File

@@ -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;