Skip to content

Commit f48b999

Browse files
authored
Update Of.java
Applied changnes proposed by @liach: "the default toString already includes id=..., so I usually don't provide an explicit override to make the code concise."
1 parent 75efb7f commit f48b999

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/jdk/java/io/Writer/Of.java

+1-6
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,7 @@
3939
public class Of {
4040
private static final String CONTENT = "Some Writer Test";
4141

42-
private static record Config(String id, Writer writer, Supplier<String> spy) {
43-
@Override
44-
public String toString() {
45-
return id; // allows to identify config when test case fails
46-
}
47-
};
42+
private static record Config(String id, Writer writer, Supplier<String> spy) {};
4843

4944
/*
5045
* Writers to be tested.

0 commit comments

Comments
 (0)