On Tue, 29 Mar 2022 22:03:02 GMT, Alexander Zuev <kiz...@openjdk.org> wrote:

>> Why do you need to wrap the entire call, can this exception be thrown by 
>> some other methods?
>
> Just for the readability. I could just split the assignment and definition of 
> Point p but the result is the same.

I think it is better to wrap only one method, it will be obvious where the 
exception can be thrown and it does not "fill the git history" of the method by 
all these unnecessary shifting.

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

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

Reply via email to