Skip to content

Commit

Permalink
Fixed possible ClassCastException on DirectEvent duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
salmonb committed Oct 30, 2023
1 parent c1c8e19 commit feaedb0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@ public DirectEvent(Event originalEvent, Object source, EventTarget target) {
public Event getOriginalEvent() {
return originalEvent;
}

@Override
public Event duplicate() {
return new DirectEvent(originalEvent, source, target);
}
}

0 comments on commit feaedb0

Please sign in to comment.