In UnitOfWork, we have

    void remove( Object entity )
            throws LifecycleException;

The only current implementation of this method cast the argument to
EntityComposite. So, why not make the type of the parameter to
EntityComposite as well? Better than a ClassCastException in runtime.

I suspect it is a left over from the days when we supported
EntityReference explicitly.


Cheers
-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to