Reconfigure Envoy Common Eclipse Project

This commit is contained in:
2020-07-18 10:19:47 +02:00
parent 381740e087
commit 282db47153
11 changed files with 44 additions and 95 deletions

View File

@ -52,7 +52,6 @@ public final class Group extends Contact {
outputStream.writeObject(getContacts());
}
@SuppressWarnings("unchecked")
@Override
public Set<User> getContacts() { return (Set<User>) contacts; }
}

View File

@ -53,7 +53,6 @@ public class EventBus {
* @param handler the event handler to register
* @since Envoy v0.2-alpha
*/
@SuppressWarnings("unchecked")
public <T extends Event<?>> void register(Class<T> eventClass, Consumer<T> handler) {
if (!handlers.containsKey(eventClass)) handlers.put(eventClass, new ArrayList<>());
handlers.get(eventClass).add((Consumer<Event<?>>) handler);