[Demonstration 1]

[Buggy Method]
@Override
protected void onDraw(Canvas canvas) {
    super.onDraw(canvas);
    if (getDrawable() == null && !isInEditMode()) {
        int xPos = (getWidth() / 2);
        int yPos = (int) ((getHeight() / 2) - ((mPaint.descent() + mPaint.ascent()) / 2));
        canvas.drawText("" + mInitial, xPos, yPos, mPaint);
    }
}

[Buggy Hunk]
int yPos = (int) ((getHeight() / 2) - ((mPaint.descent() + mPaint.ascent()) / 2));

[Patch]
int yPos = (getHeight() / 2) - mYOffset;

[Demonstration 2]

[Buggy Method]
@Override
public void render(GameContainer container, StateBasedGame game, Graphics g) throws SlickException {
    //tile the background image to get a full background
    for (int x = 0; x < container.getWidth(); x += brickBackground.getWidth()) {
        for (int y = 0; y < container.getHeight(); y += brickBackground.getHeight()) {
            brickBackground.draw(x, y);
        }
    }
    //render the physics objects
    for (PhysicsImage o : physicsImages) {
        o.render();
    }
    //show the current time
    g.setColor(new Color(0, 0, 0, 0.5f));
    g.fillRect(0, 0, container.getWidth(), 32);
    g.setColor(Color.white);
    g.drawString("Time: " + timePassed / 1000f, (container.getWidth()) / 2 - 48, 10);
    //if you lost, tell the score
    if (lost) {
        g.setColor(new Color(0, 0, 0, 0.5f));
        g.fillRect(0, 0, container.getWidth(), container.getHeight());
        g.setColor(Color.white);
        g.drawString("YOUR SCORE: " + timePassed / 1000f, (container.getWidth() - g.getFont().getWidth("YOUR SCORE: " + timePassed / 1000f)) / 2, container.getHeight() / 2);
    }
}

[Buggy Hunk]
g.fillRect(0, 0, container.getWidth(), 32);

[Patch]
g.fill(new Rectangle(0, 0, container.getWidth(), 32));

[Demonstration 3]

[Buggy Method]
public ArrayList<BoardImage> getImages() {
    return boardImages;
}

[Buggy Hunk]
public ArrayList<BoardImage> getImages() {

[Patch]
public List<BoardImage> getImages() {