Fix checkstyle issue after update to 8.30, move comments closer to the relevant code

This commit is contained in:
Andrea Bollini
2020-03-24 12:21:29 +01:00
parent ef4a33b584
commit 94706cfcc2
6 changed files with 2 additions and 8 deletions

View File

@@ -8,7 +8,6 @@
package org.dspace.discovery;
import java.sql.SQLException;
import java.util.List;
import java.util.Set;

View File

@@ -8,7 +8,6 @@
package org.dspace.app.rest.repository;
import java.io.IOException;
import java.sql.SQLException;
import java.util.LinkedList;
import java.util.List;

View File

@@ -8,7 +8,6 @@
package org.dspace.app.rest.repository;
import java.sql.SQLException;
import java.util.LinkedList;
import java.util.List;
import java.util.UUID;
@@ -60,12 +59,12 @@ public class CommunityCollectionLinkRepository extends AbstractDSpaceRestReposit
if (community == null) {
throw new ResourceNotFoundException("No such community: " + communityId);
}
// search for all the collections direct children of our community
// and let the SOLR security plugins to limit what is returned to what the user can see
Pageable pageable = utils.getPageable(optionalPageable);
List<Collection> collections = new LinkedList<Collection>();
IndexObjectFactoryFactory indexObjectFactory = IndexObjectFactoryFactory.getInstance();
IndexableObject scopeObject = indexObjectFactory.getIndexableObjects(context, community).get(0);
// search for all the collections direct children of our community
// and let the SOLR security plugins to limit what is returned to what the user can see
DiscoverQuery discoverQuery = new DiscoverQuery();
discoverQuery.setQuery("*:*");
discoverQuery.setDSpaceObjectFilter(IndexableCollection.TYPE);

View File

@@ -8,7 +8,6 @@
package org.dspace.app.rest.repository;
import java.sql.SQLException;
import java.util.LinkedList;
import java.util.List;
import java.util.UUID;

View File

@@ -8,7 +8,6 @@
package org.dspace.app.rest;
import static com.jayway.jsonpath.matchers.JsonPathMatchers.hasJsonPath;
import static org.hamcrest.Matchers.empty;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.not;

View File

@@ -8,7 +8,6 @@
package org.dspace.app.rest.matcher;
import static com.jayway.jsonpath.matchers.JsonPathMatchers.hasJsonPath;
import static org.dspace.app.rest.matcher.HalMatcher.matchEmbeds;
import static org.dspace.app.rest.test.AbstractControllerIntegrationTest.REST_SERVER_URL;
import static org.hamcrest.Matchers.allOf;