[Demonstration 1]

[Buggy Method]
private ImageIcon getTeamLogo(JarEntry logoEntry, JarFile jarCurrentFile) {
    ImageIcon teamLogo = null;
    try {
        teamLogo = new ImageIcon(WarIOTools.toByteArray(jarCurrentFile.getInputStream(logoEntry)));
    } catch (IOException e) {
        System.err.println("ERROR loading file " + logoEntry.getLastModifiedTime() + " inside jar file " + jarCurrentFile.getName());
        e.printStackTrace();
    }
    // TODO set general logo if no image found
    // On change sa taille
    Image tmp = teamLogo.getImage().getScaledInstance(50, 50, Image.SCALE_SMOOTH);
    teamLogo = new ImageIcon(tmp);
    return teamLogo;
}

[Buggy Hunk]
System.err.println("ERROR loading file " + logoEntry.getLastModifiedTime() + " inside jar file " + jarCurrentFile.getName());

[Patch]
System.err.println("ERROR loading file " + logoEntry.getName() + " inside jar file " + jarCurrentFile.getName());

[Demonstration 2]

[Buggy Method]
@Test
public void run() throws Exception {
    int exitCode = ToolRunner.run(configurationPrinter, new String[] { "-D color=yellow " });
    System.exit(exitCode);
}

[Buggy Hunk]
System.exit(exitCode);

[Patch]
assertThat(exitCode, is(0));

[Demonstration 3]

[Buggy Method]
public static void main(String[] args) {
    new Client("127.0.0.1", 9010, "abcdef").run();
}

[Buggy Hunk]
new Client("127.0.0.1", 9010, "abcdef").run();

[Patch]
new Client("127.0.0.1", 9010, "abcdef");