This is an automated email from the ASF dual-hosted git repository.
jbertram pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/main by this push:
new 0521f47a1f Improve readability of TypedProperties toString
0521f47a1f is described below
commit 0521f47a1fe1a93b08b4eceae947a8a7313dcb57
Author: Justin Bertram <[email protected]>
AuthorDate: Mon Jun 19 09:50:40 2023 -0500
Improve readability of TypedProperties toString
---
.../activemq/artemis/utils/collections/TypedProperties.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/collections/TypedProperties.java
b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/collections/TypedProperties.java
index ac7a09047f..528802388d 100644
---
a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/collections/TypedProperties.java
+++
b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/collections/TypedProperties.java
@@ -609,17 +609,17 @@ public class TypedProperties {
if (theValue == null) {
sb.append("NULL-value");
} else if (theValue instanceof byte[]) {
- sb.append("[" + ByteUtil.maxString(ByteUtil.bytesToHex((byte[])
theValue, 2), 150) + ")");
+ sb.append("[" + ByteUtil.maxString(ByteUtil.bytesToHex((byte[])
theValue, 2), 150) + "]");
if (iterItem.getKey().toString().startsWith("_AMQ_ROUTE_TO")) {
- sb.append(",bytesAsLongs(");
+ sb.append(", bytesAsLongs[");
try {
ByteBuffer buff = ByteBuffer.wrap((byte[]) theValue);
while (buff.hasRemaining()) {
long bindingID = buff.getLong();
sb.append(bindingID);
if (buff.hasRemaining()) {
- sb.append(",");
+ sb.append(", ");
}
}
} catch (Throwable e) {
@@ -632,7 +632,7 @@ public class TypedProperties {
}
if (iter.hasNext()) {
- sb.append(",");
+ sb.append(", ");
}
}
}