chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fguilla...@apache.org
Subject svn commit: r1003159 - /incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/CmisServiceWrapper.java
Date Thu, 30 Sep 2010 16:57:26 GMT
Author: fguillaume
Date: Thu Sep 30 16:57:26 2010
New Revision: 1003159

URL: http://svn.apache.org/viewvc?rev=1003159&view=rev
Log:
fix typo in check logic

Modified:
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/CmisServiceWrapper.java

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/CmisServiceWrapper.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/CmisServiceWrapper.java?rev=1003159&r1=1003158&r2=1003159&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/CmisServiceWrapper.java
(original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/CmisServiceWrapper.java
Thu Sep 30 16:57:26 2010
@@ -229,7 +229,7 @@ public class CmisServiceWrapper<T extend
             throw new CmisInvalidArgumentException("Property " + propertyId + " must have
a value!");
         }
 
-        if (clazz.isAssignableFrom(value.getClass())) {
+        if (!clazz.isAssignableFrom(value.getClass())) {
             throw new CmisInvalidArgumentException("Property " + propertyId + " has the wrong
type!");
         }
     }



Mime
View raw message