openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r1135320 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java
Date Mon, 13 Jun 2011 22:17:40 GMT
Author: ppoddar
Date: Mon Jun 13 22:17:40 2011
New Revision: 1135320

URL: http://svn.apache.org/viewvc?rev=1135320&view=rev
Log:
Print configuration array values properly

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java?rev=1135320&r1=1135319&r2=1135320&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java
Mon Jun 13 22:17:40 2011
@@ -21,6 +21,7 @@ package org.apache.openjpa.kernel;
 import java.io.ObjectStreamException;
 import java.security.AccessController;
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.HashMap;
@@ -622,7 +623,9 @@ public abstract class AbstractBrokerFact
                 Map.Entry<?,?> entry;
                 for (Iterator<Map.Entry<String,Object>> itr = props.entrySet().iterator();
itr.hasNext();) {
                     entry = itr.next();
-                    buf.append(entry.getKey()).append(": ").append(entry.getValue());
+                    Object value = entry.getValue();
+                    buf.append(entry.getKey()).append(": ")
+                       .append(value != null && value.getClass().isArray() ? Arrays.toString((Object[])value)
: value);
                     if (itr.hasNext())
                         buf.append(lineSep);
                 }



Mime
View raw message