Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
kunli2 committed Oct 18, 2023
1 parent 38acaab commit cd996a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public J visitNewClass(J.NewClass newClass, ExecutionContext executionContext) {
maybeAddImport("org.mockito.Mockito", "when");
maybeRemoveImport("mockit.Expectations");

return newMethod.withPrefix(newClass.getPrefix());
return newMethod.withPrefix(nc.getPrefix());
}
}
}

0 comments on commit cd996a0

Please sign in to comment.