1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Follow-up to the DependentValue refactoring

Replace some uses of IntegralValue with DependentValue that were missed
originally.

Change-Id: Ieac5757c042378082c8d38f4883d7e495f64d208
This commit is contained in:
Nathan Ridge 2016-10-23 02:15:20 -04:00
parent e9c6ca09e8
commit d459bad872
2 changed files with 4 additions and 3 deletions

View file

@ -86,10 +86,10 @@ public class DependentValue implements IValue {
@Override
public boolean equals(Object obj) {
if (!(obj instanceof IntegralValue)) {
if (!(obj instanceof DependentValue)) {
return false;
}
final IntegralValue rhs = (IntegralValue) obj;
final DependentValue rhs = (DependentValue) obj;
return CharArrayUtils.equals(getSignature(), rhs.getSignature());
}

View file

@ -581,7 +581,8 @@ public class ValueFactory {
}
private static boolean isDeferredValue(IValue value) {
return value instanceof IntegralValue && ((IntegralValue) value).numberValue() == null;
return value instanceof DependentValue ||
(value instanceof IntegralValue && ((IntegralValue) value).numberValue() == null);
}
/**