Don't use deprecated AST.JLS_Latest
Change-Id: I93d5edead75b876c2387eb53554653157c2e8f71
Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.runtime/+/191622
Tested-by: Platform Bot <platform-bot@eclipse.org>
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
diff --git a/bundles/org.eclipse.core.tools/src/org/eclipse/core/tools/nls/RemoveUnusedMessages.java b/bundles/org.eclipse.core.tools/src/org/eclipse/core/tools/nls/RemoveUnusedMessages.java
index c7ddd24..48c648d 100644
--- a/bundles/org.eclipse.core.tools/src/org/eclipse/core/tools/nls/RemoveUnusedMessages.java
+++ b/bundles/org.eclipse.core.tools/src/org/eclipse/core/tools/nls/RemoveUnusedMessages.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2021 IBM Corporation and others.
+ * Copyright (c) 2005, 2022 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -63,7 +63,7 @@
change = new CompositeChange("Accessor Class Changes");
RefactoringStatus result = new RefactoringStatus();
ICompilationUnit unit = JavaCore.createCompilationUnitFrom((IFile) accessorClass.getResource());
- CompilationUnit root = new RefactoringASTParser(AST.JLS_Latest).parse(unit, true, null);
+ CompilationUnit root = new RefactoringASTParser(AST.getJLSLatest()).parse(unit, true, null);
ASTRewrite rewriter = ASTRewrite.create(root.getAST());
// Search for references