Skip to content
Browse files

Removing unneeded warning alreday raised somewhere else in the code

  • Loading branch information...
1 parent 9055316 commit e3d9b9feb40f2fe42f2f60620c2a1b940941d320 @01010101 committed Jan 21, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/gml4u/events/GmlEventHandler.java
View
6 src/gml4u/events/GmlEventHandler.java
@@ -1,6 +1,5 @@
package gml4u.events;
-import gml4u.events.GmlEventHandler;
import gml4u.utils.CallbackUtils;
import java.lang.reflect.InvocationTargetException;
@@ -31,10 +30,7 @@ public GmlEventHandler() {
public void addListener(Object listener) {
// Check callback methods
- if (!CallbackUtils.hasRequiredCallback(listener, "gmlEvent", GmlEvent.class)) {
- LOGGER.warn(listener.getClass()+" shall implement a \"public void gmlEvent(GmlEvent event)\" method to be able to receive GmlEvent");
- }
- else {
+ if (CallbackUtils.hasRequiredCallback(listener, "gmlEvent", GmlEvent.class)) {
listeners.add(listener);
}
}

0 comments on commit e3d9b9f

Please sign in to comment.
Something went wrong with that request. Please try again.