You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by liu jie <cn...@yahoo.com.cn> on 2003/06/30 07:52:11 UTC

[merlin] source code duplication copy--- tow if( !dep.getReference().equals( getReference() ) )

in org.apache.avalon.meta.info.DependencyDesciptor

public boolean equals( Object other )
    {
        if( other instanceof DependencyDescriptor )
        {
            DependencyDescriptor dep =
(DependencyDescriptor) other;
            if( dep.isOptional() != isOptional() )
            {
                return false;
            }
            if( !dep.getReference().equals(
getReference() ) )
            {
                return false;
            }
            if( !dep.getReference().equals(
getReference() ) )
            {
                return false;
            }

            return super.equals( dep );
        }
        return false;
    }



_________________________________________________________
Do You Yahoo!? 
网恋的诠释:真情还是放纵?
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/netlove

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Re: [merlin] source code duplication copy--- tow if( !dep.getReference().equals( getReference() ) )

Posted by Stephen McConnell <mc...@apache.org>.
Applied - Thanks.


liu jie wrote:

>in org.apache.avalon.meta.info.DependencyDesciptor
>
>public boolean equals( Object other )
>    {
>        if( other instanceof DependencyDescriptor )
>        {
>            DependencyDescriptor dep =
>(DependencyDescriptor) other;
>            if( dep.isOptional() != isOptional() )
>            {
>                return false;
>            }
>            if( !dep.getReference().equals(
>getReference() ) )
>            {
>                return false;
>            }
>            if( !dep.getReference().equals(
>getReference() ) )
>            {
>                return false;
>            }
>
>            return super.equals( dep );
>        }
>        return false;
>    }
>
>
>
>_________________________________________________________
>Do You Yahoo!? 
>ÍøÁµµÄÚ¹ÊÍ£ºÕæÇ黹ÊÇ·Å×Ý£¿
>http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/netlove
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
>For additional commands, e-mail: dev-help@avalon.apache.org
>
>
>
>  
>

-- 

Stephen J. McConnell
mailto:mcconnell@apache.org
http://www.osm.net

Sent via James running under Merlin as an NT service.
http://avalon.apache.org/sandbox/merlin




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org