Suppress a deprecation warning about requesting an old AST version

Near as I can tell, the request for a deprecated version here is
intentional.  The non-deprecated version (AST.JLS8) is the latest and
greatest, but as far as I can tell we really do want the older version
here.
This commit is contained in:
Ben Liblit 2017-03-17 21:13:54 -05:00
parent 7cbbeb1d81
commit 6caecce3e7
1 changed files with 1 additions and 0 deletions

View File

@ -578,6 +578,7 @@ public class JdtUtil {
}
public static ASTNode getAST(IFile javaSourceFile) {
@SuppressWarnings("deprecation")
ASTParser parser = ASTParser.newParser(AST.JLS3);
parser.setSource(JavaCore.createCompilationUnitFrom(javaSourceFile));
parser.setProject(JavaCore.create(javaSourceFile.getProject()));