From 9c706f3d0a390c54a9c0a9b0c34c32d195dcb8f3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 09:11:30 +0100 Subject: [PATCH] Bump com.github.javaparser:javaparser-core from 3.12.0 to 3.25.7 (#79) * Bump com.github.javaparser:javaparser-core from 3.12.0 to 3.25.7 Bumps [com.github.javaparser:javaparser-core](https://github.com/javaparser/javaparser) from 3.12.0 to 3.25.7. - [Release notes](https://github.com/javaparser/javaparser/releases) - [Changelog](https://github.com/javaparser/javaparser/blob/master/changelog.md) - [Commits](https://github.com/javaparser/javaparser/compare/javaparser-parent-3.12.0...javaparser-parent-3.25.7) --- updated-dependencies: - dependency-name: com.github.javaparser:javaparser-core dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Fix compilation error --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sander Ploegsma --- build.gradle | 2 +- src/main/java/analyzer/exercises/Exercise.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 8bbe144e..9c7fec1d 100644 --- a/build.gradle +++ b/build.gradle @@ -15,7 +15,7 @@ repositories { dependencies { testImplementation "junit:junit:4.13.2" implementation "org.json:json:20231013" - implementation "com.github.javaparser:javaparser-core:3.12.0" + implementation "com.github.javaparser:javaparser-core:3.25.7" implementation "com.google.guava:guava:32.1.3-jre" testImplementation "com.google.truth:truth:1.1.5" testImplementation "com.google.truth.extensions:truth-java8-extension:1.1.5" diff --git a/src/main/java/analyzer/exercises/Exercise.java b/src/main/java/analyzer/exercises/Exercise.java index 70a943f6..08f9fef0 100644 --- a/src/main/java/analyzer/exercises/Exercise.java +++ b/src/main/java/analyzer/exercises/Exercise.java @@ -43,7 +43,7 @@ private Exercise(File solutionFile, FileWriter analysisFileWriter, FileWriter ta this.tagsFileWriter = tagsFileWriter; try { - this.compilationUnit = JavaParser.parse(solutionFile); + this.compilationUnit = new JavaParser().parse(solutionFile).getResult().get(); } catch (ParseProblemException e) { addComment(GeneralComment.FAILED_PARSE); } catch (FileNotFoundException e) {