[ovirt-devel] [GUI] Generic Event/IEventListener

Lior Vernia lvernia at redhat.com
Thu Aug 7 12:15:50 UTC 2014


Hello developers,

I've just pushed a patch which renders the Event and IEventListener
generic, parameterized by the type of event arguments they receive,
reviews are welcome (note some preceding and succeeding patches):
http://gerrit.ovirt.org/#/c/31194/

If merged, this should enable us to slowly remove unsafe casts, e.g. as
is often done with PropertyChangedEventArgs. I have used this (in
succeeding patches) to eliminate a couple of such coverity scan defects.

It will also add a lot of IDE warnings until most events and listeners
are properly parameterized, as was the case with the parameterization of
EntityModel and ListModel...

Yours, Lior.



More information about the Devel mailing list