Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto E. Escobar2013-08-26 20:34:34 +0000
committerRoberto E. Escobar2013-09-06 23:34:17 +0000
commit7bb9a26096b6c7ccab52b2e923ae270283f2a3d2 (patch)
tree92054314ad9256c23e7ea27628150523e47b2514 /plugins/org.eclipse.osee.framework.manager.servlet
parent0c4767ab9244dc576618791d3f852506932e3d10 (diff)
downloadorg.eclipse.osee-7bb9a26096b6c7ccab52b2e923ae270283f2a3d2.tar.gz
org.eclipse.osee-7bb9a26096b6c7ccab52b2e923ae270283f2a3d2.tar.xz
org.eclipse.osee-7bb9a26096b6c7ccab52b2e923ae270283f2a3d2.zip
refinement: Improve result set API
Remove getList method. Remove getIterable method. Since resultSet is already an Iterable object, these methods are not needed. Add size and isEmpty methods for convenience. Change-Id: I34160b3acaad391949ff9da0e81afa95f4532677
Diffstat (limited to 'plugins/org.eclipse.osee.framework.manager.servlet')
-rw-r--r--plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/SearchEngineServlet.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/SearchEngineServlet.java b/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/SearchEngineServlet.java
index f7fad718724..9dc21d8ac9a 100644
--- a/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/SearchEngineServlet.java
+++ b/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/SearchEngineServlet.java
@@ -85,7 +85,7 @@ public class SearchEngineServlet extends SecureOseeHttpServlet {
SearchResponse searchResponse = new SearchResponse();
if (options.isFindAllLocationsEnabled()) {
ResultSet<Match<ArtifactReadable, AttributeReadable<?>>> results = builder.getMatches();
- for (Match<ArtifactReadable, AttributeReadable<?>> match : results.getList()) {
+ for (Match<ArtifactReadable, AttributeReadable<?>> match : results) {
ArtifactReadable artifact = match.getItem();
int branchId = branchCache.getLocalId(artifact.getBranch());
for (AttributeReadable<?> attribute : match.getElements()) {
@@ -95,7 +95,7 @@ public class SearchEngineServlet extends SecureOseeHttpServlet {
}
} else {
ResultSet<ArtifactReadable> results = builder.getResults();
- for (ArtifactReadable artifact : results.getList()) {
+ for (ArtifactReadable artifact : results) {
int branchId = branchCache.getLocalId(artifact.getBranch());
searchResponse.add(branchId, artifact.getLocalId(), -1);
}

Back to the top