Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2011-05-04 02:10:34 +0000
committerSergey Prigogin2011-05-04 02:10:34 +0000
commitc2fe1df92509c4c9da524186d5c62bdb7698e56d (patch)
tree8c743b78b4a971b7ccf1fcbe2fbb57634c8a2368
parentac05898a57f73a91351c7431afe5df9381d924f8 (diff)
downloadorg.eclipse.cdt-c2fe1df92509c4c9da524186d5c62bdb7698e56d.tar.gz
org.eclipse.cdt-c2fe1df92509c4c9da524186d5c62bdb7698e56d.tar.xz
org.eclipse.cdt-c2fe1df92509c4c9da524186d5c62bdb7698e56d.zip
Cosmetics.
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/CIndex.java18
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IndexFactory.java4
2 files changed, 14 insertions, 8 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/CIndex.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/CIndex.java
index b47a937406e..a6f273aa0bd 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/CIndex.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/CIndex.java
@@ -91,11 +91,13 @@ public class CIndex implements IIndex {
return null;
}
- public IIndexBinding[] findBindings(Pattern pattern, boolean isFullyQualified, IndexFilter filter, IProgressMonitor monitor) throws CoreException {
+ public IIndexBinding[] findBindings(Pattern pattern, boolean isFullyQualified, IndexFilter filter,
+ IProgressMonitor monitor) throws CoreException {
return findBindings(new Pattern[] { pattern }, isFullyQualified, filter, monitor);
}
- public IIndexBinding[] findBindings(Pattern[] patterns, boolean isFullyQualified, IndexFilter filter, IProgressMonitor monitor) throws CoreException {
+ public IIndexBinding[] findBindings(Pattern[] patterns, boolean isFullyQualified, IndexFilter filter,
+ IProgressMonitor monitor) throws CoreException {
if (SPECIALCASE_SINGLES && fFragments.length == 1) {
return fFragments[0].findBindings(patterns, isFullyQualified, filter, monitor);
} else {
@@ -122,7 +124,8 @@ public class CIndex implements IIndex {
}
}
- public IIndexBinding[] findMacroContainers(Pattern pattern, IndexFilter filter, IProgressMonitor monitor) throws CoreException {
+ public IIndexBinding[] findMacroContainers(Pattern pattern, IndexFilter filter, IProgressMonitor monitor)
+ throws CoreException {
if (SPECIALCASE_SINGLES && fFragments.length == 1) {
return fFragments[0].findMacroContainers(pattern, filter, monitor);
} else {
@@ -133,7 +136,8 @@ public class CIndex implements IIndex {
IIndexFragmentBinding[][] fragmentBindings = new IIndexFragmentBinding[fPrimaryFragmentCount][];
for (int i = 0; i < fPrimaryFragmentCount; i++) {
try {
- IBinding[] part = fFragments[i].findMacroContainers(pattern, retargetFilter(linkage, filter), monitor);
+ IBinding[] part = fFragments[i].findMacroContainers(pattern,
+ retargetFilter(linkage, filter), monitor);
fragmentBindings[i] = new IIndexFragmentBinding[part.length];
System.arraycopy(part, 0, fragmentBindings[i], 0, part.length);
} catch (CoreException e) {
@@ -259,7 +263,8 @@ public class CIndex implements IIndex {
return result.toArray(new IIndexInclude[result.size()]);
}
- public void findIncludedBy(List<IIndexFile> in, List<IIndexInclude> out, int depth, HashSet<IIndexFileLocation> handled) throws CoreException {
+ public void findIncludedBy(List<IIndexFile> in, List<IIndexInclude> out, int depth,
+ HashSet<IIndexFileLocation> handled) throws CoreException {
List<IIndexFile> nextLevel= depth != 0 ? new LinkedList<IIndexFile>() : null;
for (IIndexFile iIndexFile : in) {
IIndexFragmentFile file = (IIndexFragmentFile) iIndexFile;
@@ -295,7 +300,8 @@ public class CIndex implements IIndex {
return result.toArray(new IIndexInclude[result.size()]);
}
- private void findIncludes(List<IIndexFile> in, List<IIndexInclude> out, int depth, HashSet<Object> handled) throws CoreException {
+ private void findIncludes(List<IIndexFile> in, List<IIndexInclude> out, int depth,
+ HashSet<Object> handled) throws CoreException {
List<IIndexFile> nextLevel= depth != 0 ? new LinkedList<IIndexFile>() : null;
for (IIndexFile iIndexFile : in) {
IIndexFragmentFile file = (IIndexFragmentFile) iIndexFile;
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IndexFactory.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IndexFactory.java
index e49aa2205ff..2ca1f06577b 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IndexFactory.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IndexFactory.java
@@ -113,8 +113,8 @@ public class IndexFactory {
safeAddFragment(readOnlyFrag, fPDOMManager.getPDOM(cproject));
}
- Collection<IIndexFragment> roPdoms= readOnlyFrag.values();
- return new WritableCIndex(pdom, roPdoms.toArray(new IIndexFragment[roPdoms.size()]) );
+ Collection<IIndexFragment> readOnlyFragments= readOnlyFrag.values();
+ return new WritableCIndex(pdom, readOnlyFragments.toArray(new IIndexFragment[readOnlyFragments.size()]));
}
private Collection<ICProject> getProjects(ICProject[] projects, boolean addDependencies,

Back to the top