Skip to content

Commit

Permalink
More feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanConfluent committed Feb 7, 2020
1 parent 93d745d commit 4c647f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private MaximumLagFilter(
final OptionalLong maxEndOffset
) {
this.lagByHost = requireNonNull(lagByHost, "lagByHost");
this.routingOptions = requireNonNull(routingOptions, "requireNonNull");
this.routingOptions = requireNonNull(routingOptions, "routingOptions");
this.maxEndOffset = requireNonNull(maxEndOffset, "maxEndOffset");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ private static final class ConfigRoutingOptions implements RoutingOptions {
this.overrides = overrides;
}

private long getLong(String key) {
private long getLong(final String key) {
if (overrides.containsKey(key)) {
return (Long) overrides.get(key);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,10 @@ public class LivenessFilterTest {
@Mock
private HeartbeatAgent heartbeatAgent;

private Optional<HeartbeatAgent> optionalHeartbeatAgent;
private Map<KsqlHostInfo, HostStatus> allHostsStatus;
private KsqlHostInfo activeHost;
private KsqlHostInfo standByHost1;
private KsqlHostInfo standByHost2;
private HostInfo activeHostInfo;
private LivenessFilter livenessFilter;

private static final HostStatus HOST_ALIVE = new HostStatus(true, 0L);
Expand All @@ -51,10 +49,9 @@ public class LivenessFilterTest {
@Before
public void setUp() {
activeHost = new KsqlHostInfo("activeHost", 2345);
activeHostInfo = new HostInfo("activeHost", 2345);
standByHost1 = new KsqlHostInfo("standby1", 1234);
standByHost2 = new KsqlHostInfo("standby2", 5678);
optionalHeartbeatAgent = Optional.of(heartbeatAgent);
Optional<HeartbeatAgent> optionalHeartbeatAgent = Optional.of(heartbeatAgent);
livenessFilter = new LivenessFilter(optionalHeartbeatAgent);
}

Expand Down

0 comments on commit 4c647f8

Please sign in to comment.