You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Emperor <Da...@gmx.net> on 2002/03/04 17:22:54 UTC

PATCH: bug in excalibur.event.AbstractQueue

The bug is in AbstractQueue.isFull(). Current impl:

    /**
     * Default for isFull()
     */
    public boolean isFull()
    {
	   return maxSize() - size() > 0;
    }

But correct is:

    /**
     * Default for isFull()
     */
    public boolean isFull()
    {
        return maxSize() - size() <= 0;
    }