RFR: 8269909: getStack method in hprof.parser.Reader should use try-with-resource [v4]

Lin Zang lzang at openjdk.java.net
Mon Aug 2 14:33:38 UTC 2021


On Thu, 15 Jul 2021 17:22:31 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:

>> Lin Zang 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:
>> 
>>  - fix indentation issue
>>  - Merge branch 'master' into try
>>  - revise code to handle the closing of embeded streams
>>  - Merge branch 'master' into try
>>  - 8269909: getStack method in hprof.parser.Reader should use try-with-resource
>
> Hi Lin,
> These local names with extra numbers look strange.
> You introduced these numbers in order to fix naming conflicts.
> You also can avoid these conflicts by refactoring the code.
> Some of these fragments can be refactored to become a separate methods.
> I do not want to push hard on you with this but it is just something to consider to simplify the code and avoid such naming problems.
> Thanks,
> Serguei

Hi @sspitsyn,
     May I ask your help to see whether this pr is ok for you? Thanks!

-Lin

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

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


More information about the serviceability-dev mailing list