Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
code review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Henning Schmiedehausen committed Oct 27, 2014
1 parent 39ec3cd commit de5e340
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ public class AdminResource
{
private final Coordinator coordinator;
private final Repository repository;
private final CoordinatorConfig config;
private final boolean allowDuplicateInstallationsOnAnAgent;

@Inject
public AdminResource(Coordinator coordinator, Repository repository, CoordinatorConfig config)
{
this.coordinator = coordinator;
this.repository = repository;
this.config = config;
this.allowDuplicateInstallationsOnAnAgent = config.isAllowDuplicateInstallationsOnAnAgent();
}

@GET
Expand Down Expand Up @@ -82,7 +82,7 @@ public Response getAllAgents(@Context UriInfo uriInfo)
Predicate<AgentStatus> agentPredicate = AgentFilterBuilder.build(uriInfo,
transform(coordinator.getAgents(), idGetter()),
transform(allSlotStatus, SlotStatus.uuidGetter()),
config.isAllowDuplicateInstallationsOnAnAgent(),
allowDuplicateInstallationsOnAnAgent,
repository);

List<AgentStatus> agents = coordinator.getAgents(agentPredicate);
Expand Down

0 comments on commit de5e340

Please sign in to comment.