Remove reflection in OutputCaptureExtension
Closes gh-32870
This commit is contained in:
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…
Reference in New Issue