Skip to main content

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

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



Back to the top