Re: RFR: JDK-8287337: SnippetUtils should throw exceptions if snippets not found [v2]

2022-06-02 Thread Hannes Wallnöfer
On Tue, 31 May 2022 23:43:34 GMT, Jonathan Gibbons wrote: >> Please review a simple change for `SnippetUtils` to throw a checked >> exception if a snippet cannot be found. > > Jonathan Gibbons has updated the pull request with a new target base due to a > merge or a rebase. The incremental webr

Re: RFR: JDK-8287337: SnippetUtils should throw exceptions if snippets not found [v2]

2022-05-31 Thread Jonathan Gibbons
> Please review a simple change for `SnippetUtils` to throw a checked exception > if a snippet cannot be found. Jonathan Gibbons has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase.

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

2022-05-31 Thread Jonathan Gibbons
On Tue, 31 May 2022 18:27:29 GMT, Jonathan Gibbons 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,

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

2022-05-31 Thread Jonathan Gibbons
On Tue, 31 May 2022 16:02:40 GMT, Hannes Wallnöfer 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. Note that the `requireNonNul

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

2022-05-31 Thread Hannes Wallnöfer
On Wed, 25 May 2022 19:38:13 GMT, Jonathan Gibbons wrote: > Please review a simple change for `SnippetUtils` to throw a checked exception > if a snippet cannot be found. Looks good to me. I'm not sure the `requireNonNull` method carries its own weight given that one `getSnippetById` method cou

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

2022-05-25 Thread Jonathan Gibbons
Please review a simple change for `SnippetUtils` to throw a checked exception if a snippet cannot be found. - Commit messages: - JDK-8287337: SnippetUtils should throw exceptions if snippets not found Changes: https://git.openjdk.java.net/jdk/pull/8892/files Webrev: https://webrev