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:
parent
6f7758e2db
commit
c1715fbcef
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ public class AddIncludesOperation implements IWorkspaceRunnable {
|
|||
private String[] fUsings;
|
||||
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
|
||||
|
@ -107,7 +107,7 @@ public class AddIncludesOperation implements IWorkspaceRunnable {
|
|||
int pos;
|
||||
if (elements.size() > 0) {
|
||||
IInclude lastInclude = (IInclude)elements.get(elements.size() - 1);
|
||||
ISourceRange range = ((IInclude)lastInclude).getSourceRange();
|
||||
ISourceRange range = lastInclude.getSourceRange();
|
||||
pos = range.getStartPos() + range.getLength();
|
||||
} else {
|
||||
pos = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue