On Tue, 1 Nov 2022 14:16:57 GMT, Pavel Rappo <[email protected]> wrote:

>> src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/taglets/InheritDocTaglet.java
>>  line 115:
>> 
>>> 113:                     + utils.flatSignature(method, 
>>> writer.getCurrentPageElement());
>>> 114:             messages.warning(method, "doclet.noInheritedDoc", 
>>> signature);
>>> 115:         }
>> 
>> Lines 99-115: would it help to refactor this to use an `instanceof` pattern?
>
> Please suggest how you'd do it. When I last tried it, that adjacent null 
> check was in the way.

Agreed that the refactoring is not easy or an improvement

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

PR: https://git.openjdk.org/jdk/pull/10746

Reply via email to