mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 10:54:51 +00:00
Removed no more needed comments
This commit is contained in:
@@ -46,19 +46,16 @@ public class EventFlow {
|
|||||||
/** Empty constructor (event must be added via {@link #addPostEvent(Class, Object...)}). */
|
/** Empty constructor (event must be added via {@link #addPostEvent(Class, Object...)}). */
|
||||||
public EventFlow() {}
|
public EventFlow() {}
|
||||||
|
|
||||||
// New: accept an event instance directly
|
|
||||||
public EventFlow addPostEvent(EventType event) {
|
public EventFlow addPostEvent(EventType event) {
|
||||||
this.event = event;
|
this.event = event;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Optional: accept a Supplier<EventType> to defer construction
|
|
||||||
public EventFlow addPostEvent(Supplier<? extends EventType> eventSupplier) {
|
public EventFlow addPostEvent(Supplier<? extends EventType> eventSupplier) {
|
||||||
this.event = eventSupplier.get();
|
this.event = eventSupplier.get();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Keep the old class+args version if needed
|
|
||||||
public <T extends EventType> EventFlow addPostEvent(Class<T> eventClass, Object... args) {
|
public <T extends EventType> EventFlow addPostEvent(Class<T> eventClass, Object... args) {
|
||||||
try {
|
try {
|
||||||
boolean isUuidEvent = UniqueEvent.class.isAssignableFrom(eventClass);
|
boolean isUuidEvent = UniqueEvent.class.isAssignableFrom(eventClass);
|
||||||
|
|||||||
Reference in New Issue
Block a user