RFR: 8188055: (ref) Add Reference::refersTo predicate [v6]
Tagir F.Valeev
tvaleev at openjdk.java.net
Wed Nov 4 09:34:11 UTC 2020
On Wed, 28 Oct 2020 15:56:48 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Kim Barrett has updated the pull request incrementally with one additional commit since the last revision:
>>
>> improve wording in refersTo javadoc
>
> The API looks good, thanks for getting this in.
Hello!
As an IDE developer, I'm thinking about IDE inspection that may suggest the new method. My idea is to suggest replacing every `ref.get() == obj` with `ref.refersTo(obj)`. Is this a good idea or there are cases when `ref.get() == obj` could be preferred? What do you think?
-------------
PR: https://git.openjdk.java.net/jdk/pull/498
More information about the build-dev
mailing list