mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +02:00
Remove some warnings.
This commit is contained in:
parent
eb369cc11c
commit
7b15edbc7f
2 changed files with 17 additions and 13 deletions
|
@ -196,7 +196,7 @@ public class CModelStatus extends Status implements ICModelStatus, ICModelStatus
|
|||
if (i > 0) {
|
||||
buff.append(", "); //$NON-NLS-1$
|
||||
}
|
||||
buff.append(((ICElement)fElements[i]).toString());
|
||||
buff.append((fElements[i]).toString());
|
||||
}
|
||||
return buff.toString();
|
||||
|
||||
|
|
|
@ -81,8 +81,9 @@ public class DefaultPathEntryStore implements IPathEntryStore, ICDescriptorListe
|
|||
}
|
||||
|
||||
public IPathEntry[] getRawPathEntries() throws CoreException {
|
||||
ICDescriptor cdesc = CCorePlugin.getDefault().getCProjectDescription(fProject, false);
|
||||
if (cdesc != null) {
|
||||
ArrayList pathEntries = new ArrayList();
|
||||
ICDescriptor cdesc = CCorePlugin.getDefault().getCProjectDescription(fProject);
|
||||
Element element = cdesc.getProjectData(PATH_ENTRY_ID);
|
||||
NodeList list = element.getChildNodes();
|
||||
for (int i = 0; i < list.getLength(); i++) {
|
||||
|
@ -93,15 +94,18 @@ public class DefaultPathEntryStore implements IPathEntryStore, ICDescriptorListe
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
return (IPathEntry[]) pathEntries.toArray(NO_PATHENTRIES);
|
||||
IPathEntry[] entries = new IPathEntry[pathEntries.size()];
|
||||
pathEntries.toArray(entries);
|
||||
return entries;
|
||||
}
|
||||
return NO_PATHENTRIES;
|
||||
}
|
||||
|
||||
public void setRawPathEntries(IPathEntry[] newRawEntries) throws CoreException {
|
||||
if (Arrays.equals(newRawEntries, getRawPathEntries())) {
|
||||
return;
|
||||
}
|
||||
ICDescriptor descriptor = CCorePlugin.getDefault().getCProjectDescription(fProject);
|
||||
ICDescriptor descriptor = CCorePlugin.getDefault().getCProjectDescription(fProject, true);
|
||||
Element rootElement = descriptor.getProjectData(PATH_ENTRY_ID);
|
||||
// Clear out all current children
|
||||
Node child = rootElement.getFirstChild();
|
||||
|
|
Loading…
Add table
Reference in a new issue