Reconfigure Envoy Common Eclipse Project
This commit is contained in:
		@@ -52,7 +52,6 @@ public final class Group extends Contact {
 | 
			
		||||
		outputStream.writeObject(getContacts());
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	@SuppressWarnings("unchecked")
 | 
			
		||||
	@Override
 | 
			
		||||
	public Set<User> getContacts() { return (Set<User>) contacts; }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user