RFR: 7904082: The UI for API Diff could be improved [v5]

Jan Lahoda jlahoda at openjdk.org
Wed Oct 1 12:04:35 UTC 2025


On Wed, 1 Oct 2025 11:59:45 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

>> This PR intends to improve the result of API diff in a few ways:
>> - in the list of updated elements, using green for elements that were added (instead of elements that are unchanged), and red for removed elements. At least in cases two variants of an API are compared.
>> - making added/removed elements more prominent by also coloring the signature lines
>> - hiding unchanged elements by default.
>> 
>> An example diff that is produced before this patch:
>> https://cr.openjdk.org/~jlahoda/CODETOOLS-7904082/before/
>> after this patch:
>> https://cr.openjdk.org/~jlahoda/CODETOOLS-7904082/after/
>> 
>> Please let me know what you think. I'll see if I can reasonably add some tests for this functionality.
>
> Jan Lahoda has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Removing trailing whitespace.

I've:
- added a new command line option, `--show-unchanged` to unconditionally show unchanged elements
- added a test attempt

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

PR Comment: https://git.openjdk.org/apidiff/pull/32#issuecomment-3355991335


More information about the apidiff-dev mailing list