mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Removing warnings
This commit is contained in:
parent
e5d98eb477
commit
1e9cf4ea12
1 changed files with 8 additions and 10 deletions
|
@ -301,12 +301,11 @@ public class CElementDelta implements ICElementDelta {
|
|||
protected CElementDelta find(ICElement e) {
|
||||
if (equalsAndSameParent(fChangedElement, e)) { // handle case of two jars that can be equals but not in the same project
|
||||
return this;
|
||||
} else {
|
||||
for (int i = 0; i < fAffectedChildren.length; i++) {
|
||||
CElementDelta delta = ((CElementDelta)fAffectedChildren[i]).find(e);
|
||||
if (delta != null) {
|
||||
return delta;
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < fAffectedChildren.length; i++) {
|
||||
CElementDelta delta = ((CElementDelta)fAffectedChildren[i]).find(e);
|
||||
if (delta != null) {
|
||||
return delta;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
@ -397,11 +396,10 @@ public class CElementDelta implements ICElementDelta {
|
|||
CElementDelta delta = (CElementDelta)fAffectedChildren[i];
|
||||
if (equalsAndSameParent(delta.getElement(), element)) { // handle case of two jars that can be equals but not in the same project
|
||||
return delta;
|
||||
} else {
|
||||
delta = delta.getDeltaFor(element);
|
||||
if (delta != null)
|
||||
return delta;
|
||||
}
|
||||
delta = delta.getDeltaFor(element);
|
||||
if (delta != null)
|
||||
return delta;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue