[Demonstration 1]

[Buggy Method]
@Override
public void initGui() {
    this.buttons.clear();
    super.initGui();
    int lastId = super.buttonList.size();
    super.buttonList.add(this.registerButton(new GuiRewiConnectButton(RewiButtonConnectType.MINECRAFT, lastId++, this.width / 2 + 80, this.height / 4 + 72)));
    super.buttonList.add(this.registerButton(new GuiRewiConnectButton(RewiButtonConnectType.TEAMSPEAK, lastId++, this.width / 2 - 100, this.height / 4 + 72)));
    super.buttonList.add(this.registerButton(new GuiRewiModButton(lastId++, this.width / 2 + 104, this.height / 4 + 48)));
    super.buttonList.add(this.registerButton(new GuiYoutubeButton(lastId++, this.width / 2 + 104, this.height / 4 + 72)));
    super.buttonList.add(this.registerButton(new GuiTwitterButton(lastId++, this.width / 2 + 104, this.height / 4 + 96)));
    super.buttonList.get(1).width = 150;
    super.buttonList.get(1).xPosition = this.width / 2 - 75;
}

[Buggy Hunk]
int lastId = super.buttonList.size();

[Patch]
int lastId = super.buttonList.size() + 100;

[Demonstration 2]

[Buggy Method]
public ArrayList<Plant> getPlant(Plant.WaterAmt wAmt) {
    ArrayList<Plant> result = new ArrayList<>();
    Plant[] plants = this.getAllPlants();
    for (int i = 0; i < plants.length; i++) {
        if (plants[i].getWaterAmt() == wAmt) {
            result.add(plants[i]);
        }
    }
    return result;
}

[Buggy Hunk]
ArrayList<Plant> result = new ArrayList<>();

[Patch]
ArrayList<Plant> result = new ArrayList<Plant>();

[Demonstration 3]

[Buggy Method]
private void zugEnde() {
    spiel.ZugAuswerten(eigeneKarte, gegnerischeKarte);
    eigeneKarte = gegnerischeKarte = null;
    Nearby.Connections.sendReliableMessage(mGoogleApiClient, endpointIDs, ZUGENDE.getBytes());
    // Execute some code after 2 seconds have passed
    Handler handler = new Handler();
    handler.postDelayed(new Zugende(), 2000);
}

[Buggy Hunk]
private void zugEnde() {

[Patch]
private static void zugEnde() {