From d57d914b264475a7c8ee756179738d4824381ca2 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Tue, 13 Mar 2018 17:10:54 +0100 Subject: [PATCH] Make method params final for use in anonymous inner class Issue: SPR-16587 --- .../test/web/servlet/result/JsonPathResultMatchers.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 efa3c1f0105..2cfd84e172a 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 @@ -101,7 +101,7 @@ public class JsonPathResultMatchers { * @see #value(Matcher) * @see #value(Object) */ - public ResultMatcher value(Matcher matcher, Class targetType) { + public ResultMatcher value(final Matcher matcher, final Class targetType) { return new ResultMatcher() { @Override public void match(MvcResult result) throws Exception {