From 89ebdc766cfb08ab021108070648dedecc67a706 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Tue, 18 Jun 2019 18:05:59 +0300 Subject: [PATCH] Polishing --- .../springframework/test/util/JsonPathExpectationsHelper.java | 2 +- .../org/springframework/test/web/servlet/ResultMatcher.java | 4 ++-- .../test/web/servlet/result/JsonPathResultMatchers.java | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/spring-test/src/main/java/org/springframework/test/util/JsonPathExpectationsHelper.java b/spring-test/src/main/java/org/springframework/test/util/JsonPathExpectationsHelper.java index 3ca4a1b9303..7a9ee1faaf9 100644 --- a/spring-test/src/main/java/org/springframework/test/util/JsonPathExpectationsHelper.java +++ b/spring-test/src/main/java/org/springframework/test/util/JsonPathExpectationsHelper.java @@ -79,7 +79,7 @@ public class JsonPathExpectationsHelper { * matching numbers reliably for example coercing an integer into a double. * @param content the JSON content * @param matcher the matcher with which to assert the result - * @param targetType a the expected type of the resulting value + * @param targetType the expected type of the resulting value * @since 4.3.3 */ @SuppressWarnings("unchecked") diff --git a/spring-test/src/main/java/org/springframework/test/web/servlet/ResultMatcher.java b/spring-test/src/main/java/org/springframework/test/web/servlet/ResultMatcher.java index a0dbfa5983a..1b6b409806d 100644 --- a/spring-test/src/main/java/org/springframework/test/web/servlet/ResultMatcher.java +++ b/spring-test/src/main/java/org/springframework/test/web/servlet/ResultMatcher.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -65,7 +65,7 @@ public interface ResultMatcher { static ResultMatcher matchAll(ResultMatcher... matchers) { return result -> { for (ResultMatcher matcher : matchers) { - matcher.match(result); + matcher.match(result); } }; } diff --git a/spring-test/src/main/java/org/springframework/test/web/servlet/result/JsonPathResultMatchers.java b/spring-test/src/main/java/org/springframework/test/web/servlet/result/JsonPathResultMatchers.java index f7cce760efb..853e9ca1113 100644 --- a/spring-test/src/main/java/org/springframework/test/web/servlet/result/JsonPathResultMatchers.java +++ b/spring-test/src/main/java/org/springframework/test/web/servlet/result/JsonPathResultMatchers.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -34,7 +34,6 @@ import org.springframework.util.StringUtils; * JsonPath expressions. * *

An instance of this class is typically accessed via - * {@link MockMvcResultMatchers#jsonPath(String, Matcher)} or * {@link MockMvcResultMatchers#jsonPath(String, Object...)}. * * @author Rossen Stoyanchev