1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

remove some warnings

This commit is contained in:
Alain Magloire 2004-08-12 20:15:47 +00:00
parent 6f7758e2db
commit c1715fbcef

View file

@ -45,7 +45,7 @@ public class AddIncludesOperation implements IWorkspaceRunnable {
private String[] fUsings; private String[] fUsings;
private boolean fDoSave; private boolean fDoSave;
private String newLine = System.getProperty("line.separator", "\n"); private String newLine = System.getProperty("line.separator", "\n"); //$NON-NLS-2$
/** /**
* Generate include statements for the passed java elements * Generate include statements for the passed java elements
@ -107,7 +107,7 @@ public class AddIncludesOperation implements IWorkspaceRunnable {
int pos; int pos;
if (elements.size() > 0) { if (elements.size() > 0) {
IInclude lastInclude = (IInclude)elements.get(elements.size() - 1); IInclude lastInclude = (IInclude)elements.get(elements.size() - 1);
ISourceRange range = ((IInclude)lastInclude).getSourceRange(); ISourceRange range = lastInclude.getSourceRange();
pos = range.getStartPos() + range.getLength(); pos = range.getStartPos() + range.getLength();
} else { } else {
pos = 0; pos = 0;