Remove reflection in OutputCaptureExtension

Closes gh-32870
pull/32880/head
Moritz Halbritter 2 years ago
parent 512a4c7544
commit f2c004f604

@ -104,7 +104,8 @@ public class OutputCaptureExtension
}
private OutputCapture getOutputCapture(ExtensionContext context) {
return getStore(context).getOrComputeIfAbsent(OutputCapture.class);
return getStore(context).getOrComputeIfAbsent(OutputCapture.class, (key) -> new OutputCapture(),
OutputCapture.class);
}
private Store getStore(ExtensionContext context) {

Loading…
Cancel
Save