Suppress deprecation warnings about requesting an old AST version
Near as I can tell, the requests for deprecated versions here are
intentional. The non-deprecated version (AST.JLS9) is the latest and
greatest, but as far as I can tell we really do want the older version
here.
This is similar to 6caecce3e7
, though in
that case JLS8 was the non-reprecated latest version and we were still
asking for JLS3.
This commit is contained in:
parent
1d239dac52
commit
d79707e137
|
@ -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