mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 04:45:38 +02:00
Removed unnecessary casts.
Change-Id: Id100ea3e2382598a666cb5596dafe70149aaf6f0
This commit is contained in:
parent
d941a275b4
commit
19d8c2a741
2 changed files with 4 additions and 4 deletions
|
@ -284,11 +284,11 @@ public final class CompositeValue implements IValue {
|
|||
}
|
||||
|
||||
public static IValue unmarshal(short firstBytes, ITypeMarshalBuffer buf) throws CoreException {
|
||||
ICPPEvaluation evaluation = (ICPPEvaluation) buf.unmarshalEvaluation();
|
||||
ICPPEvaluation evaluation = buf.unmarshalEvaluation();
|
||||
int len = buf.getInt();
|
||||
ICPPEvaluation values[] = new ICPPEvaluation[len];
|
||||
for (int i = 0; i < len; i++) {
|
||||
values[i] = (ICPPEvaluation) buf.unmarshalEvaluation();
|
||||
values[i] = buf.unmarshalEvaluation();
|
||||
}
|
||||
return new CompositeValue(evaluation, values);
|
||||
}
|
||||
|
|
|
@ -74,8 +74,8 @@ public class DependentValue implements IValue {
|
|||
|
||||
public static IValue unmarshal(short firstBytes, ITypeMarshalBuffer buf) throws CoreException {
|
||||
ICPPEvaluation eval= buf.unmarshalEvaluation();
|
||||
if (eval instanceof ICPPEvaluation)
|
||||
return new DependentValue((ICPPEvaluation) eval);
|
||||
if (eval != null)
|
||||
return new DependentValue(eval);
|
||||
return IntegralValue.UNKNOWN;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue