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:
parent
7cbbeb1d81
commit
6caecce3e7
|
@ -578,6 +578,7 @@ public class JdtUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ASTNode getAST(IFile javaSourceFile) {
|
public static ASTNode getAST(IFile javaSourceFile) {
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
ASTParser parser = ASTParser.newParser(AST.JLS3);
|
ASTParser parser = ASTParser.newParser(AST.JLS3);
|
||||||
parser.setSource(JavaCore.createCompilationUnitFrom(javaSourceFile));
|
parser.setSource(JavaCore.createCompilationUnitFrom(javaSourceFile));
|
||||||
parser.setProject(JavaCore.create(javaSourceFile.getProject()));
|
parser.setProject(JavaCore.create(javaSourceFile.getProject()));
|
||||||
|
|
Loading…
Reference in New Issue