From 6c4ac8f9c99d63a9172fad766be0cc7b25777b81 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Wed, 23 Oct 2019 14:27:00 +0200 Subject: [PATCH] Remove unused type parameter declaration in RequestResultMatchers The new sessionAttributeDoesNotExist() method introduced in commit e73344fc7183631bc86ef9273afbbdce9414e629 declares an unused type parameter . This commit removes that unused type parameter from the method signature. See gh-23756 --- .../test/web/servlet/result/RequestResultMatchers.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-test/src/main/java/org/springframework/test/web/servlet/result/RequestResultMatchers.java b/spring-test/src/main/java/org/springframework/test/web/servlet/result/RequestResultMatchers.java index 067e284820..55f317c7a0 100644 --- a/spring-test/src/main/java/org/springframework/test/web/servlet/result/RequestResultMatchers.java +++ b/spring-test/src/main/java/org/springframework/test/web/servlet/result/RequestResultMatchers.java @@ -153,7 +153,7 @@ public class RequestResultMatchers { * Assert the given session attributes do not exist. * @since 5.2.1 */ - public ResultMatcher sessionAttributeDoesNotExist(String... names) { + public ResultMatcher sessionAttributeDoesNotExist(String... names) { return result -> { HttpSession session = result.getRequest().getSession(); Assert.state(session != null, "No HttpSession");