chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1066538 - /incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/objecttype/ObjectTypeHelper.java
Date Wed, 02 Feb 2011 17:15:32 GMT
Author: fmui
Date: Wed Feb  2 17:15:32 2011
New Revision: 1066538

URL: http://svn.apache.org/viewvc?rev=1066538&view=rev
Log:
improved interoperability (some repositories send an empty string as the parentId of a base
type) 

Modified:
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/objecttype/ObjectTypeHelper.java

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/objecttype/ObjectTypeHelper.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/objecttype/ObjectTypeHelper.java?rev=1066538&r1=1066537&r2=1066538&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/objecttype/ObjectTypeHelper.java
(original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/objecttype/ObjectTypeHelper.java
Wed Feb  2 17:15:32 2011
@@ -50,7 +50,7 @@ public class ObjectTypeHelper implements
     }
 
     public boolean isBaseType() {
-        return objectType.getParentTypeId() == null;
+        return objectType.getParentTypeId() == null || objectType.getParentTypeId().length()
== 0;
     }
 
     public ObjectType getBaseType() {



Mime
View raw message