mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +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);
|
||||
if (otherFile == null) {
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
@ -332,8 +331,7 @@ public class CIndex implements IIndex {
|
|||
for (i = 0; i < fFragments.length; i++) {
|
||||
fFragments[i].acquireReadLock();
|
||||
}
|
||||
}
|
||||
finally {
|
||||
} finally {
|
||||
if (i < fFragments.length) {
|
||||
// rollback
|
||||
fReadLock--;
|
||||
|
@ -580,8 +578,7 @@ public class CIndex implements IIndex {
|
|||
if (!allowedFiles.contains(file)) {
|
||||
if (handledIFLs.add(file.getLocation())) {
|
||||
allowedFiles.add(file);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue