From ac695f59eb2df14c30c7a8fe15806f0f2a5faaa2 Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Tue, 31 Aug 2004 19:02:01 +0000 Subject: [PATCH] remove annoying warnings. --- .../cdt/internal/core/model/CModelManager.java | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CModelManager.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CModelManager.java index 8ad9155ccdc..59213d8c1a4 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CModelManager.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CModelManager.java @@ -897,9 +897,8 @@ public class CModelManager implements IResourceChangeListener, ICDescriptorListe } if (insertedTree) { return rootDelta; - } else { - return null; } + return null; } } @@ -919,15 +918,13 @@ public class CModelManager implements IResourceChangeListener, ICDescriptorListe } catch (CoreException ce) { if (ce instanceof CModelException) { throw (CModelException)ce; - } else { - if (ce.getStatus().getCode() == IResourceStatus.OPERATION_FAILED) { - Throwable e= ce.getStatus().getException(); - if (e instanceof CModelException) { - throw (CModelException) e; - } + } else if (ce.getStatus().getCode() == IResourceStatus.OPERATION_FAILED) { + Throwable e= ce.getStatus().getException(); + if (e instanceof CModelException) { + throw (CModelException) e; } - throw new CModelException(ce); } + throw new CModelException(ce); } finally { // 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