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:
parent
e9c6ca09e8
commit
d459bad872
2 changed files with 4 additions and 3 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue