polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [10/14] zest-java git commit: rest library: fix wrong return type
Date Mon, 28 Nov 2016 16:07:55 GMT
rest library: fix wrong return type


Project: http://git-wip-us.apache.org/repos/asf/zest-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-java/commit/c7fe1874
Tree: http://git-wip-us.apache.org/repos/asf/zest-java/tree/c7fe1874
Diff: http://git-wip-us.apache.org/repos/asf/zest-java/diff/c7fe1874

Branch: refs/heads/develop
Commit: c7fe187470242a944e8797109469da51bfff2e98
Parents: 3acd801
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Mon Nov 28 11:31:31 2016 +0100
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Mon Nov 28 11:33:38 2016 +0100

----------------------------------------------------------------------
 .../apache/zest/library/rest/server/api/ObjectSelection.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-java/blob/c7fe1874/libraries/rest-server/src/main/java/org/apache/zest/library/rest/server/api/ObjectSelection.java
----------------------------------------------------------------------
diff --git a/libraries/rest-server/src/main/java/org/apache/zest/library/rest/server/api/ObjectSelection.java
b/libraries/rest-server/src/main/java/org/apache/zest/library/rest/server/api/ObjectSelection.java
index fe7e4dc..3fb146a 100644
--- a/libraries/rest-server/src/main/java/org/apache/zest/library/rest/server/api/ObjectSelection.java
+++ b/libraries/rest-server/src/main/java/org/apache/zest/library/rest/server/api/ObjectSelection.java
@@ -21,6 +21,7 @@
 package org.apache.zest.library.rest.server.api;
 
 import java.util.ArrayList;
+import java.util.Collections;
 import java.util.List;
 import org.apache.zest.functional.Iterables;
 import org.restlet.Request;
@@ -80,9 +81,9 @@ public class ObjectSelection
         throw new IllegalArgumentException( "No object in selection for type:" + type.getSimpleName()
);
     }
 
-    public Iterable<Object> selection()
+    public List<Object> selection()
     {
-        return selection;
+        return Collections.unmodifiableList(selection);
     }
 
     public Object[] toArray()


Mime
View raw message