You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by da...@apache.org on 2012/07/09 12:50:45 UTC
svn commit: r1359050 -
/cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/ExportRegistrationImpl.java
Author: davidb
Date: Mon Jul 9 10:50:45 2012
New Revision: 1359050
URL: http://svn.apache.org/viewvc?rev=1359050&view=rev
Log:
Fix potential ClassCastException in debug output.
Modified:
cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/ExportRegistrationImpl.java
Modified: cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/ExportRegistrationImpl.java
URL: http://svn.apache.org/viewvc/cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/ExportRegistrationImpl.java?rev=1359050&r1=1359049&r2=1359050&view=diff
==============================================================================
--- cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/ExportRegistrationImpl.java (original)
+++ cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/ExportRegistrationImpl.java Mon Jul 9 10:50:45 2012
@@ -155,7 +155,7 @@ public class ExportRegistrationImpl impl
for (Map.Entry entry : props) {
Object value = entry.getValue();
r += entry.getKey() + " => " +
- (value.getClass().isArray() ? Arrays.toString((Object []) value) : value) + "\n";
+ (value instanceof Object[] ? Arrays.toString((Object []) value) : value) + "\n";
}
}
return r;