mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-30 20:35:38 +02:00
Cosmetics.
This commit is contained in:
parent
4daceaf58c
commit
64d21644a9
1 changed files with 31 additions and 34 deletions
|
@ -182,8 +182,7 @@ public class CIndex implements IIndex {
|
||||||
final IIndexFile otherFile= fileMap.get(fileKey);
|
final IIndexFile otherFile= fileMap.get(fileKey);
|
||||||
if (otherFile == null) {
|
if (otherFile == null) {
|
||||||
fileMap.put(fileKey, file);
|
fileMap.put(fileKey, file);
|
||||||
}
|
} else if (!otherFile.equals(file)) { // same file in another fragment
|
||||||
else if (!otherFile.equals(file)) { // same file in another fragment
|
|
||||||
iterator.remove();
|
iterator.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -332,8 +331,7 @@ public class CIndex implements IIndex {
|
||||||
for (i = 0; i < fFragments.length; i++) {
|
for (i = 0; i < fFragments.length; i++) {
|
||||||
fFragments[i].acquireReadLock();
|
fFragments[i].acquireReadLock();
|
||||||
}
|
}
|
||||||
}
|
} finally {
|
||||||
finally {
|
|
||||||
if (i < fFragments.length) {
|
if (i < fFragments.length) {
|
||||||
// rollback
|
// rollback
|
||||||
fReadLock--;
|
fReadLock--;
|
||||||
|
@ -580,8 +578,7 @@ public class CIndex implements IIndex {
|
||||||
if (!allowedFiles.contains(file)) {
|
if (!allowedFiles.contains(file)) {
|
||||||
if (handledIFLs.add(file.getLocation())) {
|
if (handledIFLs.add(file.getLocation())) {
|
||||||
allowedFiles.add(file);
|
allowedFiles.add(file);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue