Carsten Ziegeler created FELIX-6151:
---------------------------------------

             Summary: Implement equals method based on interface
                 Key: FELIX-6151
                 URL: https://issues.apache.org/jira/browse/FELIX-6151
             Project: Felix
          Issue Type: Improvement
          Components: Utils
            Reporter: Carsten Ziegeler
            Assignee: Carsten Ziegeler
             Fix For: utils-1.11.4


For RequirementImpl and CapabilityImpl the equals() method is currently 
implemented in AbstractCapabilityRequirement which requires that the passed 
object also is a subclass of AbstractCapabilityRequirement.
However, equals can be implemented based in the interfaces and does not need to 
require that the implementation is a subclass of AbstractCapabilityRequirement. 
This allows to check for equals of Requirements or Capabilities regardless of 
their origin



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to