fix: make EventObserver use an array of events
This commit is contained in:
parent
2aefddf979
commit
72cec32253
@ -9,14 +9,14 @@ import java.util.Observer;
|
||||
public class EventObserver implements Observer {
|
||||
@Override
|
||||
public void update(Observable o, Object arg) {
|
||||
handle((Event)arg);
|
||||
handle((Event[])arg);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets called with incoming {@link Event}s. Override this method to handle events.
|
||||
* @param event The event that got emitted
|
||||
* @param event The events that got emitted
|
||||
*/
|
||||
protected void handle(Event event) {
|
||||
protected void handle(Event[] event) {
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user