chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1528418 - /chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/TypeUtils.java
Date Wed, 02 Oct 2013 10:43:31 GMT
Author: fmui
Date: Wed Oct  2 10:43:30 2013
New Revision: 1528418

URL: http://svn.apache.org/r1528418
Log:
fixed type check on client side

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/TypeUtils.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/TypeUtils.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/TypeUtils.java?rev=1528418&r1=1528417&r2=1528418&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/TypeUtils.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/TypeUtils.java
Wed Oct  2 10:43:30 2013
@@ -323,9 +323,9 @@ public final class TypeUtils {
             }
         }
 
-        if (propDef.isQueryable() == null) {
+        if (propDef.isOrderable() == null) {
             errors.add(new ValidationError("orderable", "Orderable flag must be set."));
-        } else if (propDef.isQueryable().booleanValue()) {
+        } else if (propDef.isOrderable().booleanValue()) {
             if (propDef.getCardinality() == Cardinality.MULTI) {
                 errors.add(new ValidationError("orderable", "Orderable flag is set to TRUE
for a multi-value property."));
             }



Mime
View raw message