You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2014/03/28 15:15:29 UTC

git commit: updated refs/heads/master to 4cfcfd4

Repository: cloudstack
Updated Branches:
  refs/heads/master af66d0e4f -> 4cfcfd43d


findbugs: array toString()

Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/4cfcfd43
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/4cfcfd43
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/4cfcfd43

Branch: refs/heads/master
Commit: 4cfcfd43de0467b71c1cf5f4076285dc34fda64e
Parents: af66d0e
Author: Daan Hoogland <da...@onecht.net>
Authored: Fri Mar 28 15:12:53 2014 +0100
Committer: Daan Hoogland <da...@onecht.net>
Committed: Fri Mar 28 15:14:57 2014 +0100

----------------------------------------------------------------------
 utils/src/com/cloud/utils/SwiftUtil.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4cfcfd43/utils/src/com/cloud/utils/SwiftUtil.java
----------------------------------------------------------------------
diff --git a/utils/src/com/cloud/utils/SwiftUtil.java b/utils/src/com/cloud/utils/SwiftUtil.java
index e876290..07a7292 100644
--- a/utils/src/com/cloud/utils/SwiftUtil.java
+++ b/utils/src/com/cloud/utils/SwiftUtil.java
@@ -20,6 +20,7 @@
 package com.cloud.utils;
 
 import java.io.File;
+import java.util.Arrays;
 import java.util.Map;
 
 import org.apache.log4j.Logger;
@@ -182,7 +183,7 @@ public class SwiftUtil {
             String[] lines = parser.getLines().split("\\n");
             for (String line : lines) {
                 if (line.contains("Errno") || line.contains("failed")) {
-                    String errMsg = "swiftDownload failed , err=" + lines.toString();
+                    String errMsg = "swiftDownload failed , err=" + Arrays.toString(lines);
                     logger.debug(errMsg);
                     throw new CloudRuntimeException("Failed to get object: " + swiftPath);
                 }