chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fguilla...@apache.org
Subject svn commit: r995460 - in /incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime: ./ util/
Date Thu, 09 Sep 2010 15:26:18 GMT
Author: fguillaume
Date: Thu Sep  9 15:26:17 2010
New Revision: 995460

URL: http://svn.apache.org/viewvc?rev=995460&view=rev
Log:
Cleanup useless anonymous inner classes

Modified:
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractPersistentCmisObject.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentFolderImpl.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentSessionImpl.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/util/AbstractPageFetch.java

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractPersistentCmisObject.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/AbstractPersistentCmisObject.java?rev=995460&r1=995459&r2=995460&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractPersistentCmisObject.java
(original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractPersistentCmisObject.java
Thu Sep  9 15:26:17 2010
@@ -604,8 +604,7 @@ public abstract class AbstractPersistent
                 }
 
                 return new AbstractPageFetch.PageFetchResult<Relationship>(page, relList.getNumItems(),
relList
-                        .hasMoreItems()) {
-                };
+                        .hasMoreItems());
             }
         });
     }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentFolderImpl.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/PersistentFolderImpl.java?rev=995460&r1=995459&r2=995460&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentFolderImpl.java
(original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentFolderImpl.java
Thu Sep  9 15:26:17 2010
@@ -272,8 +272,7 @@ public class PersistentFolderImpl extend
                 }
 
                 return new AbstractPageFetch.PageFetchResult<Document>(page, checkedOutDocs.getNumItems(),
-                        checkedOutDocs.hasMoreItems()) {
-                };
+                        checkedOutDocs.hasMoreItems());
             }
         });
     }
@@ -311,8 +310,7 @@ public class PersistentFolderImpl extend
                 }
 
                 return new AbstractPageFetch.PageFetchResult<CmisObject>(page, children.getNumItems(),
children
-                        .hasMoreItems()) {
-                };
+                        .hasMoreItems());
             }
         });
     }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentSessionImpl.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/PersistentSessionImpl.java?rev=995460&r1=995459&r2=995460&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentSessionImpl.java
(original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/PersistentSessionImpl.java
Thu Sep  9 15:26:17 2010
@@ -254,8 +254,7 @@ public class PersistentSessionImpl imple
                 }
 
                 return new AbstractPageFetch.PageFetchResult<Document>(page, checkedOutDocs.getNumItems(),
-                        checkedOutDocs.hasMoreItems()) {
-                };
+                        checkedOutDocs.hasMoreItems());
             }
         });
     }
@@ -491,8 +490,7 @@ public class PersistentSessionImpl imple
                 }
 
                 return new AbstractPageFetch.PageFetchResult<QueryResult>(page, resultList.getNumItems(),
resultList
-                        .hasMoreItems()) {
-                };
+                        .hasMoreItems());
             }
         });
 

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/util/AbstractPageFetch.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/util/AbstractPageFetch.java?rev=995460&r1=995459&r2=995460&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/util/AbstractPageFetch.java
(original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/util/AbstractPageFetch.java
Thu Sep  9 15:26:17 2010
@@ -23,7 +23,7 @@ import java.util.List;
 
 /**
  * Abstract page fetch.
- * 
+ *
  * @param <T>
  */
 public abstract class AbstractPageFetch<T> {
@@ -33,18 +33,17 @@ public abstract class AbstractPageFetch<
     public AbstractPageFetch(long maxNumItems) {
         this.maxNumItems = maxNumItems;
     }
-    
+
     /**
      * Fetches the given page from the server.
-     * 
-     * @param pageNumber
-     *            number of the page (>= 0).
+     *
+     * @param skipCount initial offset where to start fetching
      */
     protected abstract PageFetchResult<T> fetchPage(long skipCount);
 
     // --- fetch result class ---
 
-    protected static class PageFetchResult<T> {
+    public static class PageFetchResult<T> {
         private List<T> page;
         private BigInteger totalItems;
         private Boolean hasMoreItems;



Mime
View raw message