mirror of
https://github.com/processing/processing4.git
synced 2026-01-27 18:31:07 +01:00
use Java 11 parser since Java 8 is deprecated
This commit is contained in:
@@ -1790,7 +1790,7 @@ public class CompletionGenerator {
|
||||
|
||||
// Now parse the expression into an ASTNode object
|
||||
ASTNode nearestNode;
|
||||
ASTParser parser = ASTParser.newParser(AST.JLS8);
|
||||
ASTParser parser = ASTParser.newParser(AST.JLS11);
|
||||
parser.setKind(ASTParser.K_EXPRESSION);
|
||||
parser.setSource(phrase.toCharArray());
|
||||
ASTNode testnode = parser.createAST(null);
|
||||
|
||||
Reference in New Issue
Block a user