1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

fix the equals().

This commit is contained in:
Alain Magloire 2003-04-01 18:52:50 +00:00
parent aacea7223c
commit d53fd678c2

View file

@ -179,6 +179,10 @@ public abstract class CElement extends PlatformObject implements ICElement {
return true;
if (o instanceof CElement) {
CElement other = (CElement) o;
if( fName == null || other.fName == null )
return false;
if( fName.length() == 0 || other.fName.length() == 0 )
return false;
if (fType != other.fType)
return false;
if (other.fName != null && fName.equals(other.fName)) {