for (int j = i+1; j < pendingFloats.size(); j++) { FloatedBlockBox following = (FloatedBlockBox)pendingFloats.get(j); following.y = block.y; }
    public void floatPending(LayoutContext c, BlockFormattingContext bfc, List pendingFloats) {        if (pendingFloats.size() > 0) {            for (int i = 0; i < pendingFloats.size(); i++) {                if (i != 0) {                    c.setFloatingY(0d);                }                FloatedBlockBox block = (FloatedBlockBox)pendingFloats.get(i);                floatBox(c, bfc, block);                block.setPending(false);                for (int j = i+1; j < pendingFloats.size(); j++) {                    FloatedBlockBox following = (FloatedBlockBox)pendingFloats.get(j);                    following.y = block.y;                }            }            pendingFloats.clear();        }    }