Skip to content

Commit 6fcf17a

Browse files
amishra-utimtebeekMBoegers
authored
ExpectedExceptionToAssertThrows: Handle branching and var usage in except methods (#721)
* ExpectedExceptionToAssertThrows: Handle branching and var usage in except methods * add cast to silence compiler warning * updating type table --------- Co-authored-by: Tim te Beek <tim@moderne.io> Co-authored-by: Merlin Bögershausen <merlin.boegershausen@rwth-aachen.de>
1 parent a3b9ecb commit 6fcf17a

File tree

4 files changed

+357
-164
lines changed

4 files changed

+357
-164
lines changed

src/main/java/org/openrewrite/java/testing/junit5/EnvironmentVariables.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public J.Annotation visitAnnotation(J.Annotation annotation, ExecutionContext ct
126126
int argCount = argCount(m);
127127
J j =
128128
getEnvVarClearTemplate(ctx, argCount)
129-
.apply(updateCursor(m), m.getCoordinates().replace(), getArgs(m, argCount));
129+
.apply(updateCursor(m), m.getCoordinates().replace(), (Object[]) getArgs(m, argCount));
130130

131131
if (getCursor().getParentTreeCursor().getValue() instanceof J.Block &&
132132
!(j instanceof Statement)) {

0 commit comments

Comments
 (0)