Skip to content

Commit 8b3079a

Browse files
committed
Simplify. Attribution. Closes #304, #430
1 parent e508ea5 commit 8b3079a

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

History.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## [Git master](https://github.com/cucumber/cucumber-jvm/compare/v1.1.1...master)
22

3+
* [Core] RunCukesTest prevents the execution of other tests ([#304](https://github.com/cucumber/cucumber-jvm/issues/304), [#430](https://github.com/cucumber/cucumber-jvm/pull/430) Mishail)
34
* [Core] Deprecated `cucumber.runtime.PendingException` in favour of `cucumber.api.PendingException`. (Aslak Hellesøy)
45
* [Core] New `@cucumber.api.Pending` annotation for custom `Exception` classes that will cause a scenario to be `pending` instead of `failed`. ([#427](https://github.com/cucumber/cucumber-jvm/pull/427) agattiker)
56
* [Core] `--name 'name with spaces in single quotes'` is working ([#379](https://github.com/cucumber/cucumber-jvm/issues/379), [#429](https://github.com/cucumber/cucumber-jvm/pull/429) William Powell)

core/src/main/java/cucumber/runtime/formatter/FormatterFactory.java

+3-9
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,13 @@ public class FormatterFactory {
4040
put("usage", UsageFormatter.class);
4141
}};
4242
private static final Pattern FORMATTER_WITH_FILE_PATTERN = Pattern.compile("([^:]+):(.*)");
43-
private Appendable defaultOut = new NonCloseableStdoutWriter();
44-
45-
static class NonCloseableStdoutWriter extends OutputStreamWriter {
46-
NonCloseableStdoutWriter() {
47-
super(System.out);
48-
}
43+
private Appendable defaultOut = new OutputStreamWriter(System.out) {
4944
@Override
5045
public void close() throws IOException {
5146
// We have no intention to close System.out
5247
}
53-
}
54-
55-
48+
};
49+
5650
public Formatter create(String formatterString) {
5751
Matcher formatterWithFile = FORMATTER_WITH_FILE_PATTERN.matcher(formatterString);
5852
String formatterName;

0 commit comments

Comments
 (0)