On 2010-10-02 11.27, Niclas Hedhman wrote:
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.

Usually this will be called in the domain layer, and at least I don't reference things by EntityComposite there, only the role names. So if I have to cast a role interface to EntityComposite that'd be sucky.

-1.

/Rickard

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

Reply via email to