1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 17:26:01 +02:00

Bug 356955: Follow up porting fix to 8.0.2.

This commit is contained in:
Markus Schorn 2011-09-19 13:00:50 +02:00
parent 24a8df9d9f
commit 2f327be2be

View file

@ -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();