[Demonstration 1]

[Buggy Method]
@Override
public boolean hasVariables() throws DebugException {
    return variables != null && variables.length > 0;
}

[Buggy Hunk]
return variables != null && variables.length > 0;

[Patch]
return getVariables() != null && getVariables().length > 0;

[Demonstration 2]

[Buggy Method]
public boolean sendOthers(UDPPacket packet, Player p) {
    packet.setPacketID(generatePacketID());
    boolean b = true;
    for (Player player1 : player.values()) {
        if (player1 != p) {
            b &= send(packet, player1.address);
        }
    }
    return b;
}

[Buggy Hunk]
b &= send(packet, player1.address);

[Patch]
b &= send(packet, player1.getAddress());

[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) {