diff --git a/maven-model/maven.mdo b/maven-model/maven.mdo index 5fa993e249..8f1679bd17 100644 --- a/maven-model/maven.mdo +++ b/maven-model/maven.mdo @@ -845,6 +845,40 @@ { return getProperties().getProperty( property ); } + + public boolean equals( Object o ) + { + if ( o == null ) + { + return false; + } + + if ( getClass() != o.getClass() ) + { + return false; + } + + if ( getId() != null ) + { + return getId().equals( ( (Dependency) o ).getId() ); + } + else + { + return ( (Dependency) o ).getId() == null; + } + } + + public int hashCode() + { + if ( getId() != null ) + { + return getId().hashCode(); + } + else + { + return super.hashCode(); + } + } ]]>