chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1684697 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java
Date Wed, 10 Jun 2015 15:44:40 GMT
Author: fmui
Date: Wed Jun 10 15:44:40 2015
New Revision: 1684697

URL: http://svn.apache.org/r1684697
Log: (empty)

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

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java?rev=1684697&r1=1684696&r2=1684697&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java
Wed Jun 10 15:44:40 2015
@@ -848,6 +848,12 @@ public final class TypeDefinitionFactory
             }
         }
 
+        if (skipCountInt >= targetList.size()) {
+            result.setHasMoreItems(false);
+            result.setNumItems(BigInteger.valueOf(targetList.size()));
+            return result;
+        }
+
         Collections.sort(targetList, new Comparator<TypeDefinition>() {
             public int compare(TypeDefinition td1, TypeDefinition td2) {
                 String pid1 = td1.getParentTypeId();



Mime
View raw message