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:
parent
24a8df9d9f
commit
2f327be2be
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue