1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 09:46:02 +02:00

Fixed confusing names.

This commit is contained in:
Sergey Prigogin 2011-03-10 02:56:48 +00:00
parent bcb875257f
commit a1c8b3f7d3

View file

@ -92,7 +92,7 @@ public class CIndex implements IIndex {
}
public IIndexBinding[] findBindings(Pattern pattern, boolean isFullyQualified, IndexFilter filter, IProgressMonitor monitor) throws CoreException {
return findBindings(new Pattern[]{pattern}, isFullyQualified, filter, monitor);
return findBindings(new Pattern[] { pattern }, isFullyQualified, filter, monitor);
}
public IIndexBinding[] findBindings(Pattern[] patterns, boolean isFullyQualified, IndexFilter filter, IProgressMonitor monitor) throws CoreException {
@ -344,8 +344,8 @@ public class CIndex implements IIndex {
public synchronized void releaseReadLock() {
if (--fReadLock == 0) {
for (IIndexFragment fFragment : fFragments) {
fFragment.releaseReadLock();
for (IIndexFragment fragment : fFragments) {
fragment.releaseReadLock();
}
}
}
@ -355,8 +355,8 @@ public class CIndex implements IIndex {
}
public boolean hasWaitingReaders() {
for (IIndexFragment fFragment : fFragments) {
if (fFragment.hasWaitingReaders()) {
for (IIndexFragment fragment : fFragments) {
if (fragment.hasWaitingReaders()) {
return true;
}
}
@ -365,8 +365,8 @@ public class CIndex implements IIndex {
public long getLastWriteAccess() {
long result= 0;
for (IIndexFragment fFragment : fFragments) {
result= Math.max(result, fFragment.getLastWriteAccess());
for (IIndexFragment fragment : fFragments) {
result= Math.max(result, fragment.getLastWriteAccess());
}
return result;
}
@ -458,8 +458,8 @@ public class CIndex implements IIndex {
public IIndexFragmentBinding[] findEquivalentBindings(IBinding binding) throws CoreException {
List<IIndexFragmentBinding> result = new ArrayList<IIndexFragmentBinding>();
for (IIndexFragment fFragment : fFragments) {
IIndexFragmentBinding adapted = fFragment.adaptBinding(binding);
for (IIndexFragment fragment : fFragments) {
IIndexFragmentBinding adapted = fragment.adaptBinding(binding);
if (adapted != null) {
result.add(adapted);
}
@ -629,23 +629,23 @@ public class CIndex implements IIndex {
public long getCacheHits() {
long result= 0;
for (IIndexFragment fFragment : fFragments) {
result+= fFragment.getCacheHits();
for (IIndexFragment fragment : fFragments) {
result+= fragment.getCacheHits();
}
return result;
}
public long getCacheMisses() {
long result= 0;
for (IIndexFragment fFragment : fFragments) {
result+= fFragment.getCacheMisses();
for (IIndexFragment fragment : fFragments) {
result+= fragment.getCacheMisses();
}
return result;
}
public void resetCacheCounters() {
for (IIndexFragment fFragment : fFragments) {
fFragment.resetCacheCounters();
for (IIndexFragment fragment : fFragments) {
fragment.resetCacheCounters();
}
}
@ -661,9 +661,9 @@ public class CIndex implements IIndex {
public IIndexFile[] getAllFiles() throws CoreException {
HashMap<IIndexFileLocation, IIndexFile> result= new HashMap<IIndexFileLocation, IIndexFile>();
for (IIndexFragment ifrag : fFragments) {
for (IIndexFragmentFile iff : ifrag.getAllFiles()) {
result.put(iff.getLocation(), iff);
for (IIndexFragment fragment : fFragments) {
for (IIndexFragmentFile file : fragment.getAllFiles()) {
result.put(file.getLocation(), file);
}
}
return result.values().toArray(new IIndexFile[result.size()]);