@Override
public int compareTo (final Customer customer) {
- // For performance reasons
+ // Check parameter on null-reference and equality to this
if (null == customer) {
// Should not happen
throw new NullPointerException("customer is null"); //NOI18N