[Demonstration 1]

[Buggy Method]
private void updateLastModifiedTime(String mapType) {
    long lastUpdatedDateTime = preferenceUtil.getLastModifiedTime(preference_General, mapType);
    map_updated_time.setText(formatUtils.getTimeAgo(lastUpdatedDateTime));
}

[Buggy Hunk]
map_updated_time.setText(formatUtils.getTimeAgo(lastUpdatedDateTime));

[Patch]
map_updated_time.setText("Updated: "+formatUtils.getTimeAgo(lastUpdatedDateTime));

[Demonstration 2]

[Buggy Method]
public synchronized void moveSong(int from, int to) {
    if (_enabled) {
        _queue.add("M" + (byte) from + (byte) to);
    }
}

[Buggy Hunk]
_queue.add("M" + (byte) from + (byte) to);

[Patch]
_queue.add(String.format("M%c%c", from, to));

[Demonstration 3]

[Buggy Method]
public static boolean write(String string) {
    if (openDevice()) {
        int length = string.length();
        byte[] cells = new byte[length];
        for (int index = 0; index < length; index += 1) {
            char character = string.charAt(index);
            Byte dots = characterMap.get(character);
            cells[index] = (dots != null) ? dots : KeyMask.DOTS_12345678;
        }
        if (writeCells(cells)) {
            return true;
        }
    }
    return false;
}

[Buggy Hunk]
cells[index] = (dots != null)? dots: KeyMask.DOTS_12345678;

[Patch]
cells[index] = (dots != null)? dots: (byte)KeyMask.DOTS_12345678;