diff options
author | Harald Musum <musum@yahooinc.com> | 2023-07-05 12:57:18 +0200 |
---|---|---|
committer | Harald Musum <musum@yahooinc.com> | 2023-07-05 12:57:18 +0200 |
commit | 15ae1073bbf3ff568b1184475848085bf4f4111a (patch) | |
tree | b6726a222c7db89b11a8460f4f2c0baaee5c301e /clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/staterestapi/errors | |
parent | 16737570b30afbe3b8699daafdcc9b8de286e5b0 (diff) |
Code cleanup, no functional changes
Diffstat (limited to 'clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/staterestapi/errors')
-rw-r--r-- | clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/staterestapi/errors/OperationNotSupportedForUnitException.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/staterestapi/errors/OperationNotSupportedForUnitException.java b/clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/staterestapi/errors/OperationNotSupportedForUnitException.java index abc55d68bc6..ffe43878839 100644 --- a/clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/staterestapi/errors/OperationNotSupportedForUnitException.java +++ b/clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/staterestapi/errors/OperationNotSupportedForUnitException.java @@ -7,9 +7,7 @@ import java.util.List; public class OperationNotSupportedForUnitException extends StateRestApiException { private static String createMessage(List<String> path, String description) { - return new StringBuilder() - .append(Arrays.toString(path.toArray())).append(": ").append(description) - .toString(); + return Arrays.toString(path.toArray()) + ": " + description; } public OperationNotSupportedForUnitException(List<String> path, String description) { |