[Demonstration 1]

[Buggy Method]
public boolean getState() {
    return state;
}

[Buggy Hunk]
public boolean getState(){

[Patch]
public static boolean getState(){

[Demonstration 2]

[Buggy Method]
@API
public void iconSetzen(Bild icon) {
    game.real_fenster.setIconImage(icon.bild());
}

[Buggy Hunk]
game.real_fenster.setIconImage(icon.bild());

[Patch]
game.real_fenster.setIconImage(icon.getImage());

[Demonstration 3]

[Buggy Method]
public static void main(String[] s) throws URISyntaxException {
    JFrame frame = new JFrame("Snake Game v1.0");
    frame.setSize(500, 500);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //sets window to the center of the screen
    frame.setLocationRelativeTo(null);
    frame.setResizable(false);
    snakeapp fa = new snakeapp();
    fa.init(frame);
    // code for displaying icon
    BufferedImage img = null;
    try {
        URL icon_location = fa.getClass().getResource("/icon_snake.png");
        URI loc = new URI(icon_location.toString());
        File f = new File(loc);
        img = ImageIO.read(f);
    } catch (IOException e) {
        System.out.println("Icon Image could not be loaded");
    }
    frame.setIconImage(img);
    frame.setVisible(true);
}

[Buggy Hunk]
JFrame frame = new JFrame("Snake Game v1.0");

[Patch]
frame = new JFrame("Snake Game v1.0");