Skip to content

Commit

Permalink
Removing ServiceRequest from requestResult (apache#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrypeng authored and sijie committed Mar 4, 2018
1 parent ef7657c commit c74e545
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ private void completeRequest(ServiceRequest serviceRequest, boolean isSuccess, S
RequestResult requestResult = new RequestResult();
requestResult.setSuccess(isSuccess);
requestResult.setMessage(message);
requestResult.setRequestDetails(serviceRequest);
pendingServiceRequest.getRequestResultCompletableFuture().complete(requestResult);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ public class RequestResult {
private boolean success;
private String message;

private ServiceRequest requestDetails;

public boolean isSuccess() {
return success;
}
Expand All @@ -42,14 +40,6 @@ public void setMessage(String message) {
this.message = message;
}

public ServiceRequest getRequestDetails() {
return requestDetails;
}

public void setRequestDetails(ServiceRequest requestDetails) {
this.requestDetails = requestDetails;
}

public String toJson() {
return new Gson().toJson(this);
}
Expand Down

0 comments on commit c74e545

Please sign in to comment.