johnsyweb/openmrs-cpm — pull request #1 by rapilabs (2012-10-30 14:23:22+00:00)
Title: Use of generics for better type safety

I've taken the liberty of modifying flashard's models to make use of generics to enforce stricter type safety by adding type parameters to ShareablePackage. Any subclass of ShareablePackage must declare the type of ShareableProposal that it uses.

Benefits include:

* Type safety: It will be impossible to add a ProposedConceptResponse to a ProposedConceptPackage
* Easier API to work with - no longer necessary to cast from ShareableProposal