[Demonstration 1]

[Buggy Method]
public boolean start() {
    if (mBoard == null)
        return false;
    try {
        Common.enableSSLSocket();
    } catch (Exception e) {
        e.printStackTrace();
        return false;
    }
    cont = true;
    firstRun = true;
    Thread worker = new Thread(loopTask);
    worker.setDaemon(true);
    worker.start();
    return true;
}

[Buggy Hunk]
Thread worker = new Thread(loopTask);

[Patch]
Thread worker = new Thread(new LoopTask());

[Demonstration 2]

[Buggy Method]
public void finishRefreshing() {
    if (onCircleRefreshListener != null) {
        onCircleRefreshListener.completeRefresh();
    }
    mIsRefreshing = false;
    mHeader.setRefreshing(false);
    new Timer().schedule(new TimerTask() {

        @Override
        public void run() {
            Activity activity = (Activity) context;
            activity.runOnUiThread(new Runnable() {

                @Override
                public void run() {
                    back();
                }
            });
        }
    }, 500);
}

[Buggy Hunk]
Activity activity = (Activity) context;

[Patch]
Activity activity = (Activity) getContext();

[Demonstration 3]

[Buggy Method]
public static void main(String[] args) throws SQLException {
    Connection conn = DriverManager.getConnection("jdbc:h2:./main");
    () -> {
    }.start();
    Statement stmt = conn.createStatement();
    stmt.execute("CREATE TABLE id IDENTITY, username VARCHAR, address VARCHAR, email VARCHAR");
}

[Buggy Hunk]
().start();

[Patch]
Server.createWebServer().start();