[Demonstration 1]

[Buggy Method]
@Override
public List<DbDataAll> getUsersByBirthday(Date date) {
    return this.jdbcTemplate.query("SELECT person_number, initials, departament, post, email, vCard, birthday, category_unit, login, password, mobile_phone, phone FROM db_data_all WHERE day(birthday) = day(?) and month(birthday) = month(?)", new Object[] { date }, (rs, row) -> this.createDbDataAll(rs));
}

[Buggy Hunk]
return this.jdbcTemplate.query("SELECT person_number, initials, departament, post, email, vCard, birthday, category_unit, login, password, mobile_phone, phone FROM db_data_all WHERE day(birthday) = day(?) and month(birthday) = month(?)", new Object[]{date}, (rs, row) -> this.createDbDataAll(rs));

[Patch]
return this.jdbcTemplate.query("SELECT person_number, initials, departament, post, email, vCard, birthday, category_unit, login, password, mobile_phone, phone, gender FROM db_data_all WHERE day(birthday) = day(?) and month(birthday) = month(?)", new Object[]{date, date}, (rs, row) -> this.createDbDataAll(rs));

[Demonstration 2]

[Buggy Method]
@Override
public int compareTo(final MultifactorAuthenticationTrustRecord o) {
    return this.date.compareTo(o.getDate());
}

[Buggy Hunk]
return this.date.compareTo(o.getDate());

[Patch]
return this.recordDate.compareTo(o.getRecordDate());

[Demonstration 3]

[Buggy Method]
public int compareTo(Mapping o) {
    int comparation;
    if ((comparation = regex.compareTo(o.regex)) != 0) {
        return comparation;
    } else if ((comparation = restful.getMethod().compareTo(o.restful.getMethod())) != 0) {
        return comparation;
    } else {
        // 有版本号比没版本号更新
        if (version == null && o.version == null)
            return 0;
        else if (version == null)
            return 1;
        else if (o.version == null)
            return -1;
        else
            return version.compareTo(o.version);
    }
}

[Buggy Hunk]
if ((comparation = regex.compareTo(o.regex)) != 0) {

[Patch]
if ((comparation = expression.compareTo(o.expression)) != 0) {