From 2f327be2bed4576945708a2abb631ba625638cd5 Mon Sep 17 00:00:00 2001 From: Markus Schorn Date: Mon, 19 Sep 2011 13:00:50 +0200 Subject: [PATCH] Bug 356955: Follow up porting fix to 8.0.2. --- .../eclipse/cdt/internal/index/tests/IndexCompositeTests.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCompositeTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCompositeTests.java index 2e61622b70f..16925f52ac5 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCompositeTests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCompositeTests.java @@ -53,6 +53,7 @@ public class IndexCompositeTests extends BaseTestCase { private static final int NONE = 0, REFS = IIndexManager.ADD_DEPENDENCIES; private static final int REFD = IIndexManager.ADD_DEPENDENT, BOTH = REFS | REFD; private static final IndexFilter FILTER= new IndexFilter() { + @Override public boolean acceptBinding(IBinding binding) throws CoreException { if (binding instanceof ICPPMethod) { return !((ICPPMethod) binding).isImplicit(); @@ -63,7 +64,7 @@ public class IndexCompositeTests extends BaseTestCase { IIndex index; - protected StringBuilder[] getContentsForTest(int blocks) throws IOException { + protected StringBuffer[] getContentsForTest(int blocks) throws IOException { return TestSourceReader.getContentsForTest( CTestPlugin.getDefault().getBundle(), "parser", getClass(), getName(), blocks); } @@ -419,6 +420,7 @@ public class IndexCompositeTests extends BaseTestCase { index.acquireReadLock(); } + @Override protected void tearDown() throws Exception { if (index != null) { index.releaseReadLock();