Fix non-compilable example in mvc ref doc
Issue: SPR-7750
This commit is contained in:
parent
4fc386a4f5
commit
5bfeb34b89
|
@ -1895,7 +1895,7 @@ public class TimeBasedAccessInterceptor extends HandlerInterceptorAdapter {
|
||||||
|
|
||||||
Calendar cal = Calendar.getInstance();
|
Calendar cal = Calendar.getInstance();
|
||||||
int hour = cal.get(HOUR_OF_DAY);
|
int hour = cal.get(HOUR_OF_DAY);
|
||||||
if (openingTime <= hour < closingTime) {
|
if (openingTime <= hour && hour < closingTime) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
response.sendRedirect("http://host.com/outsideOfficeHours.html");
|
response.sendRedirect("http://host.com/outsideOfficeHours.html");
|
||||||
|
|
Loading…
Reference in New Issue