Merge pull request #261 from liblit/warning-fixes-deprecated-AST-JLS8
Suppress deprecation warnings about requesting an old AST version
This commit is contained in:
commit
5faae993e9
|
@ -184,6 +184,7 @@ public class ECJSourceModuleTranslator implements SourceModuleTranslator {
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] sourceFiles = sources.toArray(new String[ sources.size() ]);
|
String[] sourceFiles = sources.toArray(new String[ sources.size() ]);
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
final ASTParser parser = ASTParser.newParser(AST.JLS8);
|
final ASTParser parser = ASTParser.newParser(AST.JLS8);
|
||||||
parser.setResolveBindings(true);
|
parser.setResolveBindings(true);
|
||||||
parser.setEnvironment(libs, this.sources, null, false);
|
parser.setEnvironment(libs, this.sources, null, false);
|
||||||
|
|
|
@ -172,6 +172,7 @@ public class JDTSourceModuleTranslator implements SourceModuleTranslator {
|
||||||
projectsFiles.get(proj).put(JavaCore.createCompilationUnitFrom(entry.getIFile()), entry);
|
projectsFiles.get(proj).put(JavaCore.createCompilationUnitFrom(entry.getIFile()), entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
final ASTParser parser = ASTParser.newParser(AST.JLS8);
|
final ASTParser parser = ASTParser.newParser(AST.JLS8);
|
||||||
|
|
||||||
for (final Map.Entry<IProject,Map<ICompilationUnit,EclipseSourceFileModule>> proj : projectsFiles.entrySet()) {
|
for (final Map.Entry<IProject,Map<ICompilationUnit,EclipseSourceFileModule>> proj : projectsFiles.entrySet()) {
|
||||||
|
|
Loading…
Reference in New Issue