On Sun, 17 Apr 2022 04:57:34 GMT, Jaikiran Pai <j...@openjdk.org> wrote:

>> Alan Bateman 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. The pull request contains five additional 
>> commits since the last revision:
>> 
>>  - Refresh
>>  - Refresh
>>  - Merge with jdk-19+18
>>  - Refresh
>>  - Initial push
>
> src/java.base/share/classes/java/lang/StackTraceElement.java line 556:
> 
>> 554:     }
>> 555: 
>> 556:     static StackTraceElement[] of(StackTraceElement[] stackTrace) {
> 
> Is it intentional that this method is returning a `StackTraceElement[]` 
> instead of `void`. The current implementation just returns back the passed 
> array after operating on each element. Are callers mandated to use the 
> returned array for subsequent operations instead of the passed array?

It's just for convenience of use.

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

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

Reply via email to