Browse Source

Polishing

pull/32864/head
Sébastien Deleuze 2 years ago
parent
commit
cf9033a60d
  1. 2
      spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicates.java
  2. 2
      spring-webflux/src/main/java/org/springframework/web/reactive/function/server/ServerRequest.java
  3. 2
      spring-webmvc/src/main/java/org/springframework/web/servlet/function/RequestPredicates.java
  4. 2
      spring-webmvc/src/main/java/org/springframework/web/servlet/function/ServerRequest.java

2
spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicates.java

@ -1351,7 +1351,7 @@ public abstract class RequestPredicates { @@ -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");

2
spring-webflux/src/main/java/org/springframework/web/reactive/function/server/ServerRequest.java

@ -272,7 +272,7 @@ public interface ServerRequest { @@ -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");

2
spring-webmvc/src/main/java/org/springframework/web/servlet/function/RequestPredicates.java

@ -1319,7 +1319,7 @@ public abstract class RequestPredicates { @@ -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");

2
spring-webmvc/src/main/java/org/springframework/web/servlet/function/ServerRequest.java

@ -243,7 +243,7 @@ public interface ServerRequest { @@ -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");

Loading…
Cancel
Save