diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexUpdateTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexUpdateTests.java index 2f9a59e801a..6a8e8da0adc 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexUpdateTests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexUpdateTests.java @@ -6,7 +6,7 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * Markus Schorn - initial API and implementation + * Markus Schorn - initial API and implementation *******************************************************************************/ package org.eclipse.cdt.internal.index.tests; @@ -59,7 +59,6 @@ import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IAdaptable; public class IndexUpdateTests extends IndexTestBase { - private static final String EXPLICIT = "explicit"; private static final String VIRTUAL = "virtual"; private static final String PURE_VIRTUAL= "pure-virtual"; @@ -82,9 +81,9 @@ public class IndexUpdateTests extends IndexTestBase { return suite; } - private ICProject fCppProject= null; - private ICProject fCProject= null; - private IIndex fIndex= null; + private ICProject fCppProject; + private ICProject fCProject; + private IIndex fIndex; private CharSequence[] fContents; private IFile fFile; private IFile fHeader; @@ -1285,7 +1284,7 @@ public class IndexUpdateTests extends IndexTestBase { setupFile(2, true); long id1, id2; fIndex.acquireReadLock(); - try { + try { final IIndexBinding binding = findBinding("X"); id1= ((PDOMFile) binding.getLocalToFile()).getRecord(); } finally { @@ -1294,7 +1293,7 @@ public class IndexUpdateTests extends IndexTestBase { updateFile(); fIndex.acquireReadLock(); - try { + try { final IIndexBinding binding = findBinding("X"); id2= ((PDOMFile) binding.getLocalToFile()).getRecord(); } finally { @@ -1462,6 +1461,4 @@ public class IndexUpdateTests extends IndexTestBase { fIndex.releaseReadLock(); } } - } -