Solutionunvalidated

In short, drop the `Manager.salary` member, and you should be fine:. Tension: since Java 5, the `Comparable` interface has been made generic. Outcome: You can save some casting boilerplate (and gain some compile-time safety) by defining your `Employee` as `Comparable`:.

b9ddc7ad-9672-453a-bd6f-682f6aec1551

In short, drop the Manager.salary member, and you should be fine:. Tension: since Java 5, the Comparable interface has been made generic. Outcome: You can save some casting boilerplate (and gain some compile-time safety) by defining your Employee as Comparable:.