]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-5763: Fix merge that went awry.
authorAron Roberts <aron@socrates.berkeley.edu>
Fri, 26 Apr 2013 21:11:48 +0000 (14:11 -0700)
committerAron Roberts <aron@socrates.berkeley.edu>
Fri, 26 Apr 2013 21:11:48 +0000 (14:11 -0700)
services/common/src/main/java/org/collectionspace/services/common/context/ServiceBindingUtils.java

index 01901f1eefad16de14455c05b11f2b7123b69911..0031dbdeb830dbc87c9621b423b980db2e11da48 100644 (file)
@@ -189,26 +189,6 @@ public class ServiceBindingUtils {
        try {\r
             Object obj = docModel.getPropertyValue(propName);\r
             return DocumentUtils.propertyValueAsString(obj, docModel, propName);\r
-                return "";\r
-            }\r
-            if (String.class.isAssignableFrom(obj.getClass())) {\r
-                return (String)obj;\r
-            } else {\r
-                // Handle cases where a property value returned from the repository\r
-                // can't be directly cast to a String.\r
-                //\r
-                // FIXME: We may want to create a new utility method to centralize\r
-                // our handling of these cases, as similar conversions might currently\r
-                // be performed in multiple classes. - ADR 2013-04-25\r
-                if (obj instanceof GregorianCalendar) {\r
-                    return GregorianCalendarDateTimeUtils.formatAsISO8601Timestamp((GregorianCalendar)obj);\r
-                } else {\r
-                    logger.warn("Could not convert value of property " + propName\r
-                            + " in path " + docModel.getPathAsString() + " to a String.");\r
-                    logger.warn("This may be due to a new, as-yet-unhandled datatype returned from the repository");\r
-                   return "";\r
-                }\r
-            }\r
        } catch(IndexOutOfBoundsException ioobe) {\r
                                // Should not happen, but may with certain array forms\r
                                if(logger.isTraceEnabled()) {\r