RFR: 8256154: Some TestNG tests require default constructors

Conor Cleary ccleary at openjdk.java.net
Fri Nov 20 09:41:04 UTC 2020


On Thu, 19 Nov 2020 16:44:52 GMT, Lance Andersen <lancea at openjdk.org> wrote:

>> `depth` is `final`, so it needs to be assigned. but this could be replaced with `this(0)`
>
> Ah, missed the final on depth :-)

Any particular strengths associated with `this(0)` as opposed to the actual assignment? Aside from the brevity it provides of course. Happy to modify the PR to include it

-------------

PR: https://git.openjdk.java.net/jdk/pull/1317


More information about the core-libs-dev mailing list