package de.htwg.minesweeper.util.observer;

import java.util.ArrayList;
import java.util.List;

public class Obeservable implements IObservable {
	/* Fields */
    private List<IObserver> subscribers = new ArrayList<IObserver>(2);

/* Methods */
    @Override
    public void addObserver(IObserver s) {
        subscribers.add(s);
    }

    @Override
    public void removeObserver(IObserver s) {
        subscribers.remove(s);
    }

    @Override
    public void removeAllObservers() {
        subscribers.clear();
    }

    @Override
    public void notifyObservers() {
        notifyObservers(null);
    }

    @Override
    public void notifyObservers(Event e) {
        for (IObserver observer: subscribers) {
            observer.update(e);
        }
    }
}

@@ -109,17 +109,16 @@
 class Ob
-e
 servable

Update Obeservable.java