mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics.
This commit is contained in:
parent
a328f88fad
commit
4c002040f2
1 changed files with 6 additions and 9 deletions
|
@ -6,7 +6,7 @@
|
||||||
* 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
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.internal.index.tests;
|
package org.eclipse.cdt.internal.index.tests;
|
||||||
|
|
||||||
|
@ -59,7 +59,6 @@ import org.eclipse.core.runtime.CoreException;
|
||||||
import org.eclipse.core.runtime.IAdaptable;
|
import org.eclipse.core.runtime.IAdaptable;
|
||||||
|
|
||||||
public class IndexUpdateTests extends IndexTestBase {
|
public class IndexUpdateTests extends IndexTestBase {
|
||||||
|
|
||||||
private static final String EXPLICIT = "explicit";
|
private static final String EXPLICIT = "explicit";
|
||||||
private static final String VIRTUAL = "virtual";
|
private static final String VIRTUAL = "virtual";
|
||||||
private static final String PURE_VIRTUAL= "pure-virtual";
|
private static final String PURE_VIRTUAL= "pure-virtual";
|
||||||
|
@ -82,9 +81,9 @@ public class IndexUpdateTests extends IndexTestBase {
|
||||||
return suite;
|
return suite;
|
||||||
}
|
}
|
||||||
|
|
||||||
private ICProject fCppProject= null;
|
private ICProject fCppProject;
|
||||||
private ICProject fCProject= null;
|
private ICProject fCProject;
|
||||||
private IIndex fIndex= null;
|
private IIndex fIndex;
|
||||||
private CharSequence[] fContents;
|
private CharSequence[] fContents;
|
||||||
private IFile fFile;
|
private IFile fFile;
|
||||||
private IFile fHeader;
|
private IFile fHeader;
|
||||||
|
@ -1285,7 +1284,7 @@ public class IndexUpdateTests extends IndexTestBase {
|
||||||
setupFile(2, true);
|
setupFile(2, true);
|
||||||
long id1, id2;
|
long id1, id2;
|
||||||
fIndex.acquireReadLock();
|
fIndex.acquireReadLock();
|
||||||
try {
|
try {
|
||||||
final IIndexBinding binding = findBinding("X");
|
final IIndexBinding binding = findBinding("X");
|
||||||
id1= ((PDOMFile) binding.getLocalToFile()).getRecord();
|
id1= ((PDOMFile) binding.getLocalToFile()).getRecord();
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -1294,7 +1293,7 @@ public class IndexUpdateTests extends IndexTestBase {
|
||||||
|
|
||||||
updateFile();
|
updateFile();
|
||||||
fIndex.acquireReadLock();
|
fIndex.acquireReadLock();
|
||||||
try {
|
try {
|
||||||
final IIndexBinding binding = findBinding("X");
|
final IIndexBinding binding = findBinding("X");
|
||||||
id2= ((PDOMFile) binding.getLocalToFile()).getRecord();
|
id2= ((PDOMFile) binding.getLocalToFile()).getRecord();
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -1462,6 +1461,4 @@ public class IndexUpdateTests extends IndexTestBase {
|
||||||
fIndex.releaseReadLock();
|
fIndex.releaseReadLock();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue