You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/06/29 03:36:11 UTC
[GitHub] [netbeans] mbien commented on a diff in pull request #4293: Java Record - changed state_component to record_component
mbien commented on code in PR #4293:
URL: https://github.com/apache/netbeans/pull/4293#discussion_r909167108
##########
java/java.source/src/org/netbeans/modules/java/ui/Icons.java:
##########
@@ -95,8 +95,8 @@ public static ImageIcon getElementIcon( ElementKind elementKind, Collection<Modi
icon = ImageUtilities.loadImageIcon(ICON_BASE + "record" + PNG_EXTENSION, false);
break;
}
- if (elementKind.name().equals("STATE_COMPONENT")) {
- icon = ImageUtilities.loadImageIcon(ICON_BASE + "stateComponent" + PNG_EXTENSION, false);
+ if (elementKind.name().equals("RECORD_COMPONENT")) {
+ icon = ImageUtilities.loadImageIcon(ICON_BASE + "recordComponent" + PNG_EXTENSION, false);
break;
}
Review Comment:
nitpick: I think we could use enums here too and add it to the switch, instead of the if-else String based workaround.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists