Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Error and fix

Hi Lukasz, I just applied your patch, just so you know.

Ciao
Andrea



On Thu, Oct 7, 2010 at 2:01 PM, Lukasz Stawicki <stl@xxxxxxxxxx> wrote:
> Hi all
>
> As udig site is still down, I publish it here instead of JIRA
>
> net.refractions.udig.project.AdaptableFeature
>
>
>    @Override
>    public boolean equals(Object obj) {
>        return delegate.equals( obj );
>    }
>
> Yep :) it never returns true. Even
> this.equals(this)
> gives false.
>
> I fixed it to:
>
>
>    @Override
>    public boolean equals(Object obj) {
>        if (obj instanceof AdaptableFeature) {
>                        return
> delegate.equals(((AdaptableFeature)obj).delegate);
>                }
>        return delegate.equals( obj );
>    }
>
> and I propose to put this fix into uDig trunk
>
> regards
>
> Lukasz
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>


Back to the top