On Mon, 16 Mar 2026 08:42:10 GMT, Prasanta Sadhukhan <[email protected]> 
wrote:

> Many classes have no space between operator and operand which needs to be 
> rectified

src/java.desktop/share/classes/javax/swing/text/JTextComponent.java line 1184:

> 1182:         for (Action a : actions) {
> 1183:             String value = (String)a.getValue(Action.NAME);
> 1184:             h.put((value != null ? value:""), a);

Suggestion:

            h.put((value != null ? value : ""), a);

src/java.desktop/share/classes/javax/swing/text/TextAction.java line 110:

> 108:         for (Action a : list1) {
> 109:             String value = (String)a.getValue(Action.NAME);
> 110:             h.put((value != null ? value:""), a);

Suggestion:

            h.put((value != null ? value : ""), a);

src/java.desktop/share/classes/javax/swing/text/TextAction.java line 114:

> 112:         for (Action a : list2) {
> 113:             String value = (String)a.getValue(Action.NAME);
> 114:             h.put((value != null ? value:""), a);

Here as well

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

PR Review Comment: https://git.openjdk.org/jdk/pull/30257#discussion_r2941670904
PR Review Comment: https://git.openjdk.org/jdk/pull/30257#discussion_r2941667211
PR Review Comment: https://git.openjdk.org/jdk/pull/30257#discussion_r2941669117

Reply via email to