From 5bfeb34b89ebf6958cb6351905d28a77a3d7b55e Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Fri, 17 Jun 2011 10:14:36 +0000 Subject: [PATCH] Fix non-compilable example in mvc ref doc Issue: SPR-7750 --- spring-framework-reference/src/mvc.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-framework-reference/src/mvc.xml b/spring-framework-reference/src/mvc.xml index 33df21a553..7059dce44f 100644 --- a/spring-framework-reference/src/mvc.xml +++ b/spring-framework-reference/src/mvc.xml @@ -1895,7 +1895,7 @@ public class TimeBasedAccessInterceptor extends HandlerInterceptorAdapter { Calendar cal = Calendar.getInstance(); int hour = cal.get(HOUR_OF_DAY); - if (openingTime <= hour < closingTime) { + if (openingTime <= hour && hour < closingTime) { return true; } else { response.sendRedirect("http://host.com/outsideOfficeHours.html");