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 | ea2b0a500fc0e91cf1db9b31924bac601d6640d9 (patch) | |
| tree | e1168bdbd2732ac70eea41044ba4ef2059e7c4c3 /java/common | |
| parent | 868d02828bffdb510a7ca3293697d790f31857e4 (diff) | |
| download | qpid-python-ea2b0a500fc0e91cf1db9b31924bac601d6640d9.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/qpid@1292521 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common')
| -rw-r--r-- | java/common/src/main/java/org/apache/qpid/properties/ConnectionStartProperties.java | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/java/common/src/main/java/org/apache/qpid/properties/ConnectionStartProperties.java b/java/common/src/main/java/org/apache/qpid/properties/ConnectionStartProperties.java index 0215c87618..15c144b0eb 100644 --- a/java/common/src/main/java/org/apache/qpid/properties/ConnectionStartProperties.java +++ b/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(); } |
