Skip to content

Commit

Permalink
Fix compilation issue following upstream change
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Jan 24, 2025
1 parent 5bc947c commit 54ef0d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public J visitMethodInvocation(J.MethodInvocation method, ExecutionContext ctx)
// Note: The sun.misc.CharacterDecoder#decodeBuffer throws an IOException, whereas the java
// Base64Decoder.decode does not throw a checked exception. If this recipe converts decode, we
// may need to remove the catch or completely unwrap a try/catch.
doAfterVisit(new UnnecessaryCatch(false).getVisitor());
doAfterVisit(new UnnecessaryCatch(false, false).getVisitor());
}
return m;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,11 @@ void projectWithJavaxInject() {
</dependencies>
</project>
""",
spec -> spec.after(actual -> {
assertThat(actual)
.contains("<groupId>jakarta.inject</groupId>")
.contains("<artifactId>jakarta.inject-api</artifactId>")
.containsPattern("<version>[0-9]+\\.[0-9]+\\.[0-9]+</version>");
return actual;
})
spec -> spec.after(actual -> assertThat(actual)
.contains("<groupId>jakarta.inject</groupId>")
.contains("<artifactId>jakarta.inject-api</artifactId>")
.containsPattern("<version>[0-9]+\\.[0-9]+\\.[0-9]+</version>")
.actual())
)
);
}
Expand Down

0 comments on commit 54ef0d7

Please sign in to comment.