1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 14:55:41 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2011-05-03 22:33:35 +00:00
parent 920b26a152
commit 9827997ee8

View file

@ -6,8 +6,8 @@
* http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
* *
* Contributors: * Contributors:
* Markus Schorn - initial API and implementation * Markus Schorn - initial API and implementation
* Andrew Ferguson (Symbian) * Andrew Ferguson (Symbian)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.internal.core.index; package org.eclipse.cdt.internal.core.index;
@ -166,8 +166,7 @@ public class IndexFactory {
if (project.isOpen()) { if (project.isOpen()) {
map.put(project, markWith); map.put(project, markWith);
projectsToSearch.add(project); projectsToSearch.add(project);
} } else {
else {
map.put(project, new Integer(0)); map.put(project, new Integer(0));
} }
} }
@ -189,11 +188,10 @@ public class IndexFactory {
} finally { } finally {
fragment.releaseReadLock(); fragment.releaseReadLock();
} }
} catch (CoreException e) {
} catch(CoreException ce) { CCorePlugin.log(e);
CCorePlugin.log(ce); } catch (InterruptedException e) {
} catch(InterruptedException ie) { CCorePlugin.log(e);
CCorePlugin.log(ie);
} }
} }
} }
@ -215,8 +213,8 @@ public class IndexFactory {
for (IIndexFragment fragment : pFragments) { for (IIndexFragment fragment : pFragments) {
safeAddFragment(fragments, fragment); safeAddFragment(fragments, fragment);
} }
} catch(CoreException ce) { } catch (CoreException e) {
CCorePlugin.log(ce); CCorePlugin.log(e);
} }
} }
} }