mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Polishing
This commit is contained in:
+1
-1
@@ -1351,7 +1351,7 @@ public abstract class RequestPredicates {
|
||||
public String pathVariable(String name) {
|
||||
Map<String, String> pathVariables = pathVariables();
|
||||
if (pathVariables.containsKey(name)) {
|
||||
return pathVariables().get(name);
|
||||
return pathVariables.get(name);
|
||||
}
|
||||
else {
|
||||
throw new IllegalArgumentException("No path variable with name \"" + name + "\" available");
|
||||
|
||||
+1
-1
@@ -272,7 +272,7 @@ public interface ServerRequest {
|
||||
default String pathVariable(String name) {
|
||||
Map<String, String> pathVariables = pathVariables();
|
||||
if (pathVariables.containsKey(name)) {
|
||||
return pathVariables().get(name);
|
||||
return pathVariables.get(name);
|
||||
}
|
||||
else {
|
||||
throw new IllegalArgumentException("No path variable with name \"" + name + "\" available");
|
||||
|
||||
+1
-1
@@ -1319,7 +1319,7 @@ public abstract class RequestPredicates {
|
||||
public String pathVariable(String name) {
|
||||
Map<String, String> pathVariables = pathVariables();
|
||||
if (pathVariables.containsKey(name)) {
|
||||
return pathVariables().get(name);
|
||||
return pathVariables.get(name);
|
||||
}
|
||||
else {
|
||||
throw new IllegalArgumentException("No path variable with name \"" + name + "\" available");
|
||||
|
||||
+1
-1
@@ -243,7 +243,7 @@ public interface ServerRequest {
|
||||
default String pathVariable(String name) {
|
||||
Map<String, String> pathVariables = pathVariables();
|
||||
if (pathVariables.containsKey(name)) {
|
||||
return pathVariables().get(name);
|
||||
return pathVariables.get(name);
|
||||
}
|
||||
else {
|
||||
throw new IllegalArgumentException("No path variable with name \"" + name + "\" available");
|
||||
|
||||
Reference in New Issue
Block a user