notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r1395 - development/main/magic/core/src/main/net/dpml/magic/model
- From: mcconnell AT netcompartner.com
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r1395 - development/main/magic/core/src/main/net/dpml/magic/model
- Date: Thu, 06 Jan 2005 16:00:47 +0100
Author: mcconnell
Date: Thu Jan 6 16:00:47 2005
New Revision: 1395
Modified:
development/main/magic/core/src/main/net/dpml/magic/model/Definition.java
Log:
improve equality test
Modified:
development/main/magic/core/src/main/net/dpml/magic/model/Definition.java
==============================================================================
--- development/main/magic/core/src/main/net/dpml/magic/model/Definition.java
(original)
+++ development/main/magic/core/src/main/net/dpml/magic/model/Definition.java
Thu Jan 6 16:00:47 2005
@@ -189,6 +189,11 @@
final ResourceRef[] plugins = getPluginRefs();
final ResourceRef[] plugins2 = def.getPluginRefs();
+
+ if( plugins.length != plugins2.length )
+ {
+ return false;
+ }
for( int i=0; i<plugins.length; i++ )
{
if( !plugins[i].equals( plugins2[i] ) ) return false;
@@ -196,6 +201,10 @@
final ResourceRef[] parts = getPartRefs();
final ResourceRef[] parts2 = def.getPartRefs();
+ if( parts.length != parts2.length )
+ {
+ return false;
+ }
for( int i=0; i<parts.length; i++ )
{
if( !parts[i].equals( parts2[i] ) ) return false;
- svn commit: r1395 - development/main/magic/core/src/main/net/dpml/magic/model, mcconnell, 01/06/2005
Archive powered by MHonArc 2.6.24.