Skip to content
Snippets Groups Projects
Commit 1af90ac2 authored by Sören Henning's avatar Sören Henning
Browse files

Minor code clean up

parent db540455
No related branches found
No related tags found
1 merge request!33Fix workload generation for benchmark UC2
Pipeline #826 passed
......@@ -32,7 +32,7 @@ cleanup.qualify_static_member_accesses_with_declaring_class=true
cleanup.qualify_static_method_accesses_with_declaring_class=false
cleanup.remove_private_constructors=true
cleanup.remove_redundant_modifiers=false
cleanup.remove_redundant_semicolons=false
cleanup.remove_redundant_semicolons=true
cleanup.remove_redundant_type_arguments=true
cleanup.remove_trailing_whitespaces=true
cleanup.remove_trailing_whitespaces_all=true
......
......@@ -87,7 +87,7 @@ public abstract class AbstractWorkloadGenerator<T>
final int periodMs = (int) period.toMillis();
LOGGER.info("Period: " + periodMs); // NOPMD no computational intensive logger call
LOGGER.info("Period: {}", periodMs);
final BiConsumer<WorkloadDefinition, Integer> workerAction = (declaration, workerId) -> {
......@@ -118,9 +118,12 @@ public abstract class AbstractWorkloadGenerator<T>
}
};
this.workloadDistributor =
new WorkloadDistributor(this.instances, this.zooKeeper, this.keySpace, this.beforeAction,
workerAction);
this.workloadDistributor = new WorkloadDistributor(
this.instances,
this.zooKeeper,
this.keySpace,
this.beforeAction,
workerAction);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment