Skip to content

Commit

Permalink
Netflix#689: code style
Browse files Browse the repository at this point in the history
  • Loading branch information
dmgcodevil committed Mar 28, 2015
1 parent bf9da0e commit ba90b6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ public Object getRequestArgument() {
@Override
protected HystrixCommand<List<Object>> createCommand(
Collection<CollapsedRequest<Object, Object>> collapsedRequests) {
BatchHystrixCommand command = BatchHystrixCommandFactory.getInstance().create(metaHolder, collapsedRequests);
return command;
return BatchHystrixCommandFactory.getInstance().create(metaHolder, collapsedRequests);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private Object[] toArgs(Collection<HystrixCollapser.CollapsedRequest<Object, Obj
}

private List<Object> collect(Collection<HystrixCollapser.CollapsedRequest<Object, Object>> requests) {
List<Object> commandArgs = new ArrayList<Object>();
List<Object> commandArgs = new ArrayList<>();
for (HystrixCollapser.CollapsedRequest<Object, Object> request : requests) {
final Object[] args = (Object[]) request.getArgument();
commandArgs.add(args[0]);
Expand Down

0 comments on commit ba90b6c

Please sign in to comment.