Skip to content

Commit 1334184

Browse files
Upgrade javaparser-core to 3.28.0 #3073 (#3948)
Since 3.13.0 the static JavaParser.parse(...) methods live in StaticJavaParser, so bumping the version alone fails to compile. JavadocConsistencyUnitTests is the only remaining user of the library after the generators were removed in #3866. Switch its two call sites to StaticJavaParser.parse(File). Co-authored-by: Aleksandar Todorov <a_t_todorov@yahoo.com>
1 parent b1fefdd commit 1334184

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@
442442
<dependency>
443443
<groupId>com.github.javaparser</groupId>
444444
<artifactId>javaparser-core</artifactId>
445-
<version>3.6.3</version>
445+
<version>3.28.0</version>
446446
<scope>test</scope>
447447
</dependency>
448448

‎src/test/java/io/lettuce/core/api/consistency/JavadocConsistencyUnitTests.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import org.junit.jupiter.api.Tag;
2424
import org.junit.jupiter.api.Test;
2525

26-
import com.github.javaparser.JavaParser;
26+
import com.github.javaparser.StaticJavaParser;
2727
import com.github.javaparser.ast.body.MethodDeclaration;
2828
import com.github.javaparser.ast.body.Parameter;
2929
import com.github.javaparser.ast.comments.JavadocComment;
@@ -71,7 +71,7 @@ void deprecatedAnnotationAndJavadocTagAgree() throws Exception {
7171
TreeSet<String> annotationWithoutTag = new TreeSet<>();
7272
TreeSet<String> tagWithoutAnnotation = new TreeSet<>();
7373

74-
JavaParser.parse(source).accept(new VoidVisitorAdapter<Void>() {
74+
StaticJavaParser.parse(source).accept(new VoidVisitorAdapter<Void>() {
7575

7676
@Override
7777
public void visit(MethodDeclaration method, Void arg) {
@@ -314,7 +314,7 @@ private static Map<String, MethodDoc> parse(File source) throws Exception {
314314

315315
Map<String, MethodDoc> methods = new LinkedHashMap<>();
316316

317-
JavaParser.parse(source).accept(new VoidVisitorAdapter<Void>() {
317+
StaticJavaParser.parse(source).accept(new VoidVisitorAdapter<Void>() {
318318

319319
@Override
320320
public void visit(MethodDeclaration method, Void arg) {

0 commit comments

Comments
 (0)