neilcsmith-net commented on code in PR #8690:
URL: https://github.com/apache/netbeans/pull/8690#discussion_r2247384350
##########
java/java.file.launcher/src/org/netbeans/modules/java/file/launcher/actions/SingleJavaSourceRunActionProvider.java:
##########
@@ -55,6 +55,19 @@ public String[] getSupportedActions() {
};
}
+ private String getTaskName(String command, String fileName){
+ if(command == null || command.isEmpty()) return fileName;
+ String action = command.contains(".")
+ ? command.substring(0, command.indexOf('.'))
+ : command;
+ String capitalized = action.substring(0, 1).toUpperCase()
+ + action.substring(1).toLowerCase();
Review Comment:
If a command String, these probably want to be Locale independent. Probably
pass `Locale.ROOT` into both `toUpperCase` and `toLowerCase`.
--
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