1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 08:55:25 +02:00

remove annoying warnings.

This commit is contained in:
Alain Magloire 2004-08-31 19:02:01 +00:00
parent 5976bb29a1
commit ac695f59eb

View file

@ -897,9 +897,8 @@ public class CModelManager implements IResourceChangeListener, ICDescriptorListe
} }
if (insertedTree) { if (insertedTree) {
return rootDelta; return rootDelta;
} else {
return null;
} }
return null;
} }
} }
@ -919,15 +918,13 @@ public class CModelManager implements IResourceChangeListener, ICDescriptorListe
} catch (CoreException ce) { } catch (CoreException ce) {
if (ce instanceof CModelException) { if (ce instanceof CModelException) {
throw (CModelException)ce; throw (CModelException)ce;
} else { } else if (ce.getStatus().getCode() == IResourceStatus.OPERATION_FAILED) {
if (ce.getStatus().getCode() == IResourceStatus.OPERATION_FAILED) { Throwable e= ce.getStatus().getException();
Throwable e= ce.getStatus().getException(); if (e instanceof CModelException) {
if (e instanceof CModelException) { throw (CModelException) e;
throw (CModelException) e;
}
} }
throw new CModelException(ce);
} }
throw new CModelException(ce);
} finally { } finally {
// fire only if there were no awaiting deltas (if there were, they would come from a resource modifying operation) // fire only if there were no awaiting deltas (if there were, they would come from a resource modifying operation)
// and the operation has not modified any resource // and the operation has not modified any resource