[Demonstration 1]

[Buggy Method]
public ArrayList<BoardVector> getVectors() {
    return vectors;
}

[Buggy Hunk]
public ArrayList<BoardVector> getVectors() {

[Patch]
public List<BoardVector> getVectors() {

[Demonstration 2]

[Buggy Method]
public static List<Bitmap> getImageTiles(Context context, String imagePath, int column, int row) {
    List<Bitmap> list = new ArrayList<>();
    Bitmap image;
    if (TextUtils.isEmpty(imagePath)) {
        image = BitmapFactory.decodeResource(context.getResources(), R.drawable.cat);
    } else {
        image = BitmapFactory.decodeFile(imagePath);
    }
    int tileWidth = image.getWidth() / column;
    int tileHeight = image.getHeight() / row;
    for (int i = 0; i < row; i++) {
        for (int j = 0; j < column; j++) {
            Bitmap tile = Bitmap.createBitmap(image, j * tileHeight, i * tileWidth, tileWidth, tileHeight);
            list.add(tile);
        }
    }
    return list;
}

[Buggy Hunk]
public static List<Bitmap> getImageTiles(Context context, String imagePath, int column, int row){

[Patch]
private static List<Bitmap> getImageTiles(Context context, String imagePath, int column, int row){

[Demonstration 3]

[Buggy Method]
public static BufferedImage extractRotatedRegion(BufferedImage image, int xLoc, int yLoc, int width, int height, double angle) {
    BufferedImage result = new BufferedImage(width, height, image.getType());
    Graphics2D gResult = result.createGraphics();
    gResult.rotate(-angle, width / 2, height / 2);
    gResult.translate(-xLoc, -yLoc);
    gResult.drawImage(image, 0, 0, null);
    return result;
}

[Buggy Hunk]
BufferedImage result = new BufferedImage(width, height, image.getType());

[Patch]
BufferedImage result = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);