[Demonstration 1]

[Buggy Method]
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
    JLabel jLabel = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
    ImageIcon icon = new ImageIcon(CodeAnalyzerComponents.class.getResource("/resources/warning.png"));
    if (column == 0) {
        jLabel.setText(value.toString());
        AndroidTableModel model = (AndroidTableModel) table.getModel();
        int nInCnt = Integer.valueOf(model.getValueAt(row, 2).toString());
        int nOutCnt = Integer.valueOf(model.getValueAt(row, 3).toString());
        if (nInCnt + nOutCnt >= 10)
            jLabel.setIcon(icon);
        else
            jLabel.setIcon(null);
    } else {
        jLabel.setText(value.toString());
        jLabel.setIcon(null);
    }
    return jLabel;
}

[Buggy Hunk]
if( nInCnt + nOutCnt >=10 )

[Patch]
if( ( nInCnt + nOutCnt >=10 ) && ( !value.toString().equals("Total :")) )

[Demonstration 2]

[Buggy Method]
@PUT
@Path("/send")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public Response sendMessage(String msg) {
    try {
        Message message = new Message(new JSONObject(msg));
        String fileName = message.getTo() + ".txt";
        message.setSequence(increaseUserSequence(fileName));
        writeToFile(fileName, message);
        JSONObject obj = new JSONObject();
        obj.put("date", message.getDate());
        obj.put("sequence", message.getSequence());
        return Response.status(Response.Status.CREATED).entity(obj).build();
    } catch (Exception e) {
        e.printStackTrace();
        return Response.status(Response.Status.BAD_REQUEST).build();
    }
}

[Buggy Hunk]
return Response.status(Response.Status.CREATED).entity(obj).build();

[Patch]
return Response.status(Response.Status.CREATED).entity(obj.toString()).build();

[Demonstration 3]

[Buggy Method]
@SuppressWarnings("unchecked")
private void createUI(String title) {
    titleLabel = new TitleBarX();
    setUndecorated(true);
    rootPane.setBackground(Color.black);
    rootPane.setBorder(new EmptyBorder(2, 2, 2, 2));
    rootPane.setLayout(new BorderLayout());
    contentPane.setBackground(Constant.BG_COLOR);
    titleLabel.setText(title);
    titleLabel.setHorizontalAlignment(JLabel.CENTER);
    titleLabel.setFont(titleLabel.getFont().deriveFont(Font.BOLD).deriveFont(18f));
    titleLabel.addMouseMotionListener(new MouseMotionAdapter() {

        @Override
        public void mouseDragged(MouseEvent e) {
            headerMouseDragged(e);
        }
    });
    titleLabel.addMouseListener(new MouseAdapter() {

        @Override
        public void mousePressed(MouseEvent e) {
            headerMousePressed(e);
        }
    });
    rootPane.add(titleLabel, BorderLayout.NORTH);
    rootPane.add(contentPane, BorderLayout.CENTER);
}

[Buggy Hunk]
rootPane.setBackground(Color.black);

[Patch]
rootPane.setBackground(Constant.BORDER_COLOR);