Skip to content

Commit

Permalink
#214 Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
mitch2na committed Nov 17, 2016
1 parent d69a8be commit c7940da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public IncludedRelationshipExtractor(ResourceRegistry resourceRegistry) {
}

/**
* Return an ordered map from the base resource that contain the fields annotated with {@link io.katharsis.resource.annotations.JsonApiIncludeByDefault} up to the first level of inclusions.
* Return an ordered map from the base resource that contain the fields annotated with {@link io.katharsis.resource.annotations.JsonApiIncludeByDefault} down the chain.
* <p>
* Additionally, return all the fields that are nested N levels deep in the include query parameters.
* ex. include=projects.task.project will go three levels deep trying to find populated fields.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package io.katharsis.response;

import java.util.Objects;

import io.katharsis.queryspec.internal.QueryAdapter;
import io.katharsis.request.path.JsonPath;

import java.util.Objects;

/**
* A class responsible for representing top-level JSON object returned by Katharsis. The data value is an array. The
* resulting JSON is shown below:
Expand All @@ -24,9 +24,6 @@ public class CollectionResponseContext implements BaseResponseContext {

private QueryAdapter queryAdapter;

public CollectionResponseContext() {
}

public CollectionResponseContext(JsonApiResponse response, JsonPath jsonPath, QueryAdapter queryAdapter) {
this.response = response;
this.jsonPath = jsonPath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@ public class Container {
private final int includedIndex;
private final String topResourceType;

public Container() {
this.data = null;
this.response = null;
this.containerType = null;
this.includedIndex = -1;
topResourceType = null;
}

public Container(Object data, BaseResponseContext response) {
this.data = data;
this.response = response;
Expand Down

0 comments on commit c7940da

Please sign in to comment.