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;