[Demonstration 1]

[Buggy Method]
public void open() {
    Class.forName("com.mysql.jdbc.Driver");
    conn = DriverManager.getConnection("jdbc:mysql://cslvm74.csc.calpoly.edu/cjacob07", "cjacob07", "Ma94ne07k");
}

[Buggy Hunk]
public void open() {

[Patch]
public void open() throws Exception {

[Demonstration 2]

[Buggy Method]
@Test(expected = IllegalArgumentException.class)
public void testXenonErrorCode() throws Throwable {
    ServiceErrorResponse rsp = ServiceErrorResponse.create(new IllegalArgumentException(), Operation.STATUS_CODE_BAD_REQUEST);
    rsp.setInternalCode(123123);
}

[Buggy Hunk]
rsp.setInternalCode(123123);

[Patch]
rsp.setInternalErrorCode(123123);

[Demonstration 3]

[Buggy Method]
public int put(final IAMBaseListEncoder list) throws NullPointerException {
    if (list == null)
        throw new NullPointerException();
    final int result = this.lists.size();
    this.lists.add(result, list);
    return result;
}

[Buggy Hunk]
public int put(final IAMBaseListEncoder list) throws NullPointerException {

[Patch]
protected int put(final IAMBaseListEncoder list) throws NullPointerException {