Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Klish committed Feb 3, 2020
1 parent 2d4041b commit 2cee0d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.stream.Collectors;

import javax.ws.rs.core.MultivaluedMap;
Expand Down Expand Up @@ -164,11 +165,16 @@ public Boolean isDefaultInstance() {
* @throws InvalidValueException invalid query parameter
*/
public static PaginationImpl parseQueryParams(Class<?> entityClass,
final MultivaluedMap<String, String> queryParams,
final Optional<MultivaluedMap<String, String>> queryParams,
ElideSettings elideSettings)
throws InvalidValueException {

if (! queryParams.isPresent()) {
return getDefaultPagination(entityClass, elideSettings);
}

final Map<PaginationKey, Integer> pageData = new HashMap<>();
queryParams.entrySet()
queryParams.get().entrySet()
.forEach(paramEntry -> {
final String queryParamKey = paramEntry.getKey();
if (PAGE_KEYS.containsKey(queryParamKey)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
package example.packageshareable;

import com.yahoo.elide.annotation.Include;
import com.yahoo.elide.annotation.NonTransferable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
Expand Down

0 comments on commit 2cee0d4

Please sign in to comment.