Fix non-compilable example in mvc ref doc

Issue: SPR-7750
This commit is contained in:
Chris Beams
2011-06-17 10:14:36 +00:00
parent 4fc386a4f5
commit 5bfeb34b89

View File

@@ -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");