Browse Source

Polish var-args declarations

Closes gh-29640
pull/29659/head
ShenFeng312 3 years ago committed by GitHub
parent
commit
c79474d269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      spring-test/src/main/java/org/springframework/test/web/client/match/JsonPathRequestMatchers.java
  2. 2
      spring-test/src/main/java/org/springframework/test/web/servlet/result/XpathResultMatchers.java

2
spring-test/src/main/java/org/springframework/test/web/client/match/JsonPathRequestMatchers.java

@ -52,7 +52,7 @@ public class JsonPathRequestMatchers { @@ -52,7 +52,7 @@ public class JsonPathRequestMatchers {
* @param args arguments to parameterize the {@code JsonPath} expression with,
* using formatting specifiers defined in {@link String#format(String, Object...)}
*/
protected JsonPathRequestMatchers(String expression, Object ... args) {
protected JsonPathRequestMatchers(String expression, Object... args) {
this.jsonPathHelper = new JsonPathExpectationsHelper(expression, args);
}

2
spring-test/src/main/java/org/springframework/test/web/servlet/result/XpathResultMatchers.java

@ -52,7 +52,7 @@ public class XpathResultMatchers { @@ -52,7 +52,7 @@ public class XpathResultMatchers {
* @param args arguments to parameterize the XPath expression with using the
* formatting specifiers defined in {@link String#format(String, Object...)}
*/
protected XpathResultMatchers(String expression, @Nullable Map<String, String> namespaces, Object ... args)
protected XpathResultMatchers(String expression, @Nullable Map<String, String> namespaces, Object... args)
throws XPathExpressionException {
this.xpathHelper = new XpathExpectationsHelper(expression, namespaces, args);

Loading…
Cancel
Save