Skip to content

Commit 5bfeb34

Browse files
committed
Fix non-compilable example in mvc ref doc
Issue: SPR-7750
1 parent 4fc386a commit 5bfeb34

File tree

1 file changed

+1
-1
lines changed
  • spring-framework-reference/src

1 file changed

+1
-1
lines changed

spring-framework-reference/src/mvc.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1895,7 +1895,7 @@ public class TimeBasedAccessInterceptor extends HandlerInterceptorAdapter {
18951895

18961896
Calendar cal = Calendar.getInstance();
18971897
int hour = cal.get(HOUR_OF_DAY);
1898-
if (openingTime <= hour < closingTime) {
1898+
if (openingTime <= hour && hour < closingTime) {
18991899
return true;
19001900
} else {
19011901
response.sendRedirect("http://host.com/outsideOfficeHours.html");

0 commit comments

Comments
 (0)