For the first two, I think you can use <identity>true</identity> in the
key field now.
- Brett
On 27/07/2006 9:37 AM, [EMAIL PROTECTED] wrote:
Author: jdcasey
Date: Wed Jul 26 16:37:55 2006
New Revision: 425905
URL: http://svn.apache.org/viewvc?rev=425905&view=rev
Log:
Adding codeSegment for object identity to Plugin class.
Modified:
maven/components/trunk/maven-model/maven.mdo
Modified: maven/components/trunk/maven-model/maven.mdo
URL:
http://svn.apache.org/viewvc/maven/components/trunk/maven-model/maven.mdo?rev=425905&r1=425904&r2=425905&view=diff
==============================================================================
--- maven/components/trunk/maven-model/maven.mdo (original)
+++ maven/components/trunk/maven-model/maven.mdo Wed Jul 26 16:37:55 2006
@@ -2356,6 +2356,28 @@
{
return groupId + ":" + artifactId;
}
+
+ public boolean equals( Object other )
+ {
+ if ( other instanceof Plugin )
+ {
+ Plugin otherPlugin = (Plugin) other;
+
+ return getKey().equals( otherPlugin.getKey() );
+ }
+
+ return false;
+ }
+
+ public int hashCode()
+ {
+ return getKey().hashCode();
+ }
+
+ public String toString()
+ {
+ return "Plugin [" + getKey() + "]";
+ }
]]></code>
</codeSegment>
</codeSegments>
--
Apache Maven - http://maven.apache.org/
Better Builds with Maven - http://library.mergere.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]