lbownik commented on code in PR #5530:
URL: https://github.com/apache/netbeans/pull/5530#discussion_r1111317496
##########
ide/httpserver/src/org/netbeans/modules/httpserver/GrantAccessPanel.java:
##########
@@ -55,7 +55,7 @@ private void initComponents() {
localTopMessage.setDisabledTextColor (javax.swing.UIManager.getColor
("Label.foreground")); // NOI18N
localTopMessage.setFont (javax.swing.UIManager.getFont
("Label.font")); // NOI18N
- StringBuffer lTopMessage = new StringBuffer();
+ StringBuilder lTopMessage = new StringBuilder();
lTopMessage.append(msg);
localTopMessage.setText(lTopMessage.toString());
Review Comment:
Is lTopMessage even needed here?
Wouldn't
localTopMessage.setText(msg != null ? msg : "null");
suffice ?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists