You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@codehaus.org> on 2014/06/17 21:42:10 UTC
[jira] (MNG-3619) Dependency.equals(Object):boolean is missing for
version 4.0.0 POMs
[ https://jira.codehaus.org/browse/MNG-3619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov updated MNG-3619:
--------------------------------
Affects Version/s: (was: 2.2.x (to be reviewed))
> Dependency.equals(Object):boolean is missing for version 4.0.0 POMs
> -------------------------------------------------------------------
>
> Key: MNG-3619
> URL: https://jira.codehaus.org/browse/MNG-3619
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: POM
> Reporter: Dennis Lundberg
> Fix For: 3.x / Backlog
>
>
> The modello file for the 2.0.x branch does not have a <codeSegment> for 4.0.0 POMs that implements equals(Object):boolean. Modello doesn't generate one automatically either. Perhaps upgrading to a newer version of the modello plugin will solve this.
> http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/maven-model/src/main/mdo/maven.mdo?revision=659677&view=markup
> There is a <codeSegment> for 3.0.0 POMs only:
> {code}
> /**
> * @see java.lang.Object#equals(java.lang.Object)
> */
> public boolean equals( Object o )
> {
> if ( this == o )
> {
> return true;
> }
> if ( !( o instanceof Dependency ) )
> {
> return false;
> }
> Dependency d = (Dependency) o;
> return getId().equals( d.getId() );
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)