josiahcarlson / redis-in-action

Example code from the book

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Java code for chapter 8 is broken

senjin-hajrulahovic opened this issue · comments

----- testRefillTimeline -----
Exception in thread "main" java.lang.IndexOutOfBoundsException: toIndex = 5
        at java.util.ArrayList.subListRangeCheck(ArrayList.java:1014)
        at java.util.ArrayList.subList(ArrayList.java:1006)
        at Chapter08.refillTimeline(Chapter08.java:460)
        at Chapter08.refillTimeline(Chapter08.java:431)
        at Chapter08.testRefillTimeline(Chapter08.java:130)
        at Chapter08.run(Chapter08.java:36)
        at Chapter08.main(Chapter08.java:17)
:run FAILED