# HG changeset patch # User timkelly # Date 1272660910 18000 # Node ID e49ca0803f826145dc9f6c6e92de2c0b373c01f6 # Parent 25ab7e58dbf739e70b9a1cc9a5751bc603324e16 fix 11207 diff -r 25ab7e58dbf7 -r e49ca0803f82 builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/CarbideBuildConfiguration.java --- a/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/CarbideBuildConfiguration.java Fri Apr 30 12:41:41 2010 -0500 +++ b/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/CarbideBuildConfiguration.java Fri Apr 30 15:55:10 2010 -0500 @@ -289,21 +289,25 @@ } } - public boolean equals(Object obj) { - if (obj instanceof ICarbideBuildConfiguration || obj instanceof ISymbianBuildContext){ - ISymbianBuildContext context = (ISymbianBuildContext)obj; - if (context.getDisplayString().equals(this.getDisplayString())){ - return true; - } else if (context.getPlatformString().equals(this.getPlatformString()) && - context.getTargetString().equals(this.getTargetString()) && - context.getSDK().equals(this.getSDK()) && context.getSBSv2Alias() != null && context.getSBSv2Alias().split("_").length == 2){ - return true; - } else { - return false; - } - } - return false; - } +// public boolean equals(Object obj) { +// if (obj instanceof ICarbideBuildConfiguration || obj instanceof ISymbianBuildContext){ +// ISymbianBuildContext context = (ISymbianBuildContext)obj; +// if (context.getDisplayString().equals(this.getDisplayString())){ +// return true; +// } else if (context.getPlatformString().equals(this.getPlatformString()) && +// context.getTargetString().equals(this.getTargetString()) && +// context.getSDK().equals(this.getSDK())){ +// if (context.getSBSv2Alias() == null && this.getSBSv2Alias() == null) +// return true; // SBSv1 check +// else if (context.getSBSv2Alias().equalsIgnoreCase(this.getSBSv2Alias())){ +// return true; // SBSv2 check +// } +// } else { +// return false; +// } +// } +// return false; +// } public int getErrorParserId(){ String plat = this.getPlatformString(); diff -r 25ab7e58dbf7 -r e49ca0803f82 core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/SymbianBuildContext.java --- a/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/SymbianBuildContext.java Fri Apr 30 12:41:41 2010 -0500 +++ b/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/SymbianBuildContext.java Fri Apr 30 15:55:10 2010 -0500 @@ -76,7 +76,7 @@ return true; if (obj == null) return false; - if (getClass() != obj.getClass()) + if (!(obj instanceof SymbianBuildContext)) return false; final SymbianBuildContext other = (SymbianBuildContext) obj; if (platform == null) {