Hi Matti, Since Vaadin 8.12 the EventRegistration class of Vaadin has the

Hi Matti,

Since Vaadin 8.12 the EventRegistration class of Vaadin has the

public Registration addListener(Class<?> eventType, Object object, Method method)

deprecated and it now requires the public interface LeafletClickListener to extend SerializableEventListener - The warning is Adding listeners with type Object is deprecated, event listener should extend SerializableEventListener

If you could add this to your LeafletClickListener class it would avoid all these warnings.

Regards,
George

Hi,

Thanks for the suggestion. This would probably cause some issues for those in stuck with older Vaadin 8 versions, but it might make sense to do now that Vaadin 8 is already in 8.14.1 and there shouldn’t be too many reasons not to upgrade Vaadin as well.

Would you like to prepare a PR for the change?

cheers,
matti