diff options
author | Robert Gemmell <robbie@apache.org> | 2012-02-22 21:34:39 +0000 |
---|---|---|
committer | Robert Gemmell <robbie@apache.org> | 2012-02-22 21:34:39 +0000 |
commit | 45264b3e677536f10567d94ebde7b395951df5dd (patch) | |
tree | 6a86cb86a15473a47c52f97b87f82990c30554b5 | |
parent | 779fa08b0bdc26e164a5e9c1478c83722e31a593 (diff) | |
download | qpid-python-45264b3e677536f10567d94ebde7b395951df5dd.tar.gz |
QPID-3789: restore one of the improvements made in this JIRA which was inadvertantly reverted during subsequent application of an older patch elsewhere
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1292521 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/java/common/src/main/java/org/apache/qpid/properties/ConnectionStartProperties.java | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/qpid/java/common/src/main/java/org/apache/qpid/properties/ConnectionStartProperties.java b/qpid/java/common/src/main/java/org/apache/qpid/properties/ConnectionStartProperties.java index 0215c87618..15c144b0eb 100644 --- a/qpid/java/common/src/main/java/org/apache/qpid/properties/ConnectionStartProperties.java +++ b/qpid/java/common/src/main/java/org/apache/qpid/properties/ConnectionStartProperties.java @@ -74,14 +74,19 @@ public class ConnectionStartProperties public static String getPlatformInfo() { - StringBuffer fullSystemInfo = new StringBuffer(); - fullSystemInfo.append(System.getProperty("java.runtime.name")); - fullSystemInfo.append(", " + System.getProperty("java.runtime.version")); - fullSystemInfo.append(", " + System.getProperty("java.vendor")); - fullSystemInfo.append(", " + System.getProperty("os.arch")); - fullSystemInfo.append(", " + System.getProperty("os.name")); - fullSystemInfo.append(", " + System.getProperty("os.version")); - fullSystemInfo.append(", " + System.getProperty("sun.os.patch.level")); + StringBuilder fullSystemInfo = new StringBuilder(System.getProperty("java.runtime.name")); + fullSystemInfo.append(", "); + fullSystemInfo.append(System.getProperty("java.runtime.version")); + fullSystemInfo.append(", "); + fullSystemInfo.append(System.getProperty("java.vendor")); + fullSystemInfo.append(", "); + fullSystemInfo.append(System.getProperty("os.arch")); + fullSystemInfo.append(", "); + fullSystemInfo.append(System.getProperty("os.name")); + fullSystemInfo.append(", "); + fullSystemInfo.append(System.getProperty("os.version")); + fullSystemInfo.append(", "); + fullSystemInfo.append(System.getProperty("sun.os.patch.level")); return fullSystemInfo.toString(); } |