diff --git a/workload-generator-commons/.settings/org.eclipse.jdt.ui.prefs b/workload-generator-commons/.settings/org.eclipse.jdt.ui.prefs index 4e04e2891754324a6e1bf55348b6a38f592bb301..fa98ca63d77bdee891150bd6713f70197a75cefc 100644 --- a/workload-generator-commons/.settings/org.eclipse.jdt.ui.prefs +++ b/workload-generator-commons/.settings/org.eclipse.jdt.ui.prefs @@ -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 diff --git a/workload-generator-commons/src/main/java/theodolite/commons/workloadgeneration/generators/AbstractWorkloadGenerator.java b/workload-generator-commons/src/main/java/theodolite/commons/workloadgeneration/generators/AbstractWorkloadGenerator.java index 82bb5a951087cd9958a2e33247174e10fe4f3335..2f2d823463b0e68ce8b8b0cbf373cbb9cd049870 100644 --- a/workload-generator-commons/src/main/java/theodolite/commons/workloadgeneration/generators/AbstractWorkloadGenerator.java +++ b/workload-generator-commons/src/main/java/theodolite/commons/workloadgeneration/generators/AbstractWorkloadGenerator.java @@ -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); } /**