RFR: 6726690: SwingUtilities.replaceUI*Map() methods do not remove previously installed maps [v2]

Prasanta Sadhukhan psadhukhan at openjdk.org
Mon Dec 8 13:18:52 UTC 2025


On Mon, 8 Dec 2025 11:00:14 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:

>> Prasanta Sadhukhan has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - Redundant code remove
>>  - Redundant code remove
>
> src/java.desktop/share/classes/javax/swing/SwingUtilities.java line 1825:
> 
>> 1823:             map = parent;
>> 1824:         }
>> 1825:         if (map != null && uiInputMap == null) {
> 
> Line 1826 seems to be unreachable, as we have `while (map != null) {` before in the same method.

you are right..removed..

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28671#discussion_r2598597114


More information about the client-libs-dev mailing list