Remove reflection in OutputCaptureExtension
Closes gh-32870
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user