Skip to content

Commit

Permalink
Fixed compilation bug into restcontroller
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviocirillo committed Aug 25, 2017
1 parent 4d69a80 commit a725605
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -780,14 +780,14 @@ public ResponseEntity<AppendContextElementResponse> simpleQueryIdPost(
&& !response.getContextElementResponse().isEmpty()) {

// create the new context attribute response
ArrayList<ContextAttributeResponse> ar = new ArrayList<ContextAttributeResponse>();
ContextAttributeResponse ar = new ContextAttributeResponse();
ar.setContextAttribute(new ArrayList<ContextAttribute>());

for (ContextElementResponse element : response
.getContextElementResponse()) {
ContextAttributeResponse attrib = new ContextAttributeResponse();
attrib.setContextAttribute(element.getContextElement()
ar.getContextAttribute().addAll(element.getContextElement()
.getContextAttributeList());
attrib.setStatusCode(element.getStatusCode());
ar.add(attrib);
ar.setStatusCode(element.getStatusCode());
}

AppendContextElementResponse respAppend = new AppendContextElementResponse(
Expand Down

0 comments on commit a725605

Please sign in to comment.