rohityadavcloud commented on code in PR #7486:
URL: https://github.com/apache/cloudstack/pull/7486#discussion_r1187079958
##########
agent/src/main/java/com/cloud/agent/dao/impl/PropertiesStorage.java:
##########
@@ -92,11 +92,11 @@ public synchronized boolean configure(String name,
Map<String, Object> params) {
file = new File(path);
try {
if (!file.createNewFile()) {
- s_logger.error("Unable to create _file: " +
file.getAbsolutePath());
+ s_logger.error("Unable to create _file:
".concat(file.getAbsolutePath()));
Review Comment:
the preferred way would be to use String.format, the concatenation using `+`
isn't any different from concat.
--
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]