1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

bug 319512: Compilation warnings

This commit is contained in:
Andrew Gvozdev 2010-08-22 03:06:21 +00:00
parent f5a1f8aeb8
commit f21bf3f5a8

View file

@ -71,13 +71,13 @@ public class PDOMDependencyCalculator implements IManagedDependencyCalculator {
if (files.length > 0) {
IIndexInclude[] includes = index.findIncludes(files[0], IIndex.DEPTH_INFINITE);
List/*<IPath>*/ list = new ArrayList/*<IPath>*/();
for (int i = 0; i < includes.length; ++i) {
if (includes[i].isResolved()) {
list.add(IndexLocationFactory.getAbsolutePath(includes[i].getIncludesLocation()));
List<IPath> list = new ArrayList<IPath>();
for (IIndexInclude inc : includes) {
if (inc.isResolved()) {
list.add(IndexLocationFactory.getAbsolutePath(inc.getIncludesLocation()));
}
}
dependencies = (IPath[])list.toArray(new IPath[list.size()]);
dependencies = list.toArray(new IPath[list.size()]);
} else
dependencies = new IPath[0];
}