From 665251fa2f87945488fdcfea3365e59af44a08a8 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Fri, 22 Nov 2013 12:55:12 +0100 Subject: [PATCH] Suppress deprecation warning in StatusResultMatchers --- .../test/web/servlet/result/StatusResultMatchers.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-test/src/main/java/org/springframework/test/web/servlet/result/StatusResultMatchers.java b/spring-test/src/main/java/org/springframework/test/web/servlet/result/StatusResultMatchers.java index b8549bca3b..7e5077f58b 100644 --- a/spring-test/src/main/java/org/springframework/test/web/servlet/result/StatusResultMatchers.java +++ b/spring-test/src/main/java/org/springframework/test/web/servlet/result/StatusResultMatchers.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2013 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. @@ -211,7 +211,9 @@ public class StatusResultMatchers { /** * Assert the response status code is {@code HttpStatus.MOVED_TEMPORARILY} (302). + * @see #isFound() */ + @SuppressWarnings("deprecation") public ResultMatcher isMovedTemporarily() { return matcher(HttpStatus.MOVED_TEMPORARILY); }