RFR: JDK-8287337: SnippetUtils should throw exceptions if snippets not found

Jonathan Gibbons jjg at openjdk.java.net
Tue May 31 23:08:28 UTC 2022


On Tue, 31 May 2022 18:27:29 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:

> Looks good to me. I'm not sure the `requireNonNull` method carries its own weight given that one `getSnippetById` method could by implemented by calling the other, but that's a minor stylistic concern.

OK, I looked at this again, and now see what you mean. I'll look at simplifying this.

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

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


More information about the compiler-dev mailing list