From a6f6a4f71c496dfaab448dbac5f247fd28469745 Mon Sep 17 00:00:00 2001 From: Jonathan Shook Date: Sat, 9 Dec 2023 23:29:32 -0600 Subject: [PATCH] reduce ambiguous warnings --- .../nosqlbench/nb/api/engine/activityimpl/CyclesSpec.java | 6 +++--- .../nosqlbench/nb/api/engine/activityimpl/ParameterMap.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nb-api/src/main/java/io/nosqlbench/nb/api/engine/activityimpl/CyclesSpec.java b/nb-api/src/main/java/io/nosqlbench/nb/api/engine/activityimpl/CyclesSpec.java index 2a1dd951f..c5edc8ddc 100644 --- a/nb-api/src/main/java/io/nosqlbench/nb/api/engine/activityimpl/CyclesSpec.java +++ b/nb-api/src/main/java/io/nosqlbench/nb/api/engine/activityimpl/CyclesSpec.java @@ -28,9 +28,9 @@ public record CyclesSpec(long first_inclusive, long last_exclusive, String first if (first_inclusive>last_exclusive) { throw new InvalidParameterException("cycles must start with a lower first cycle than last cycle"); } - if (first_inclusive==last_exclusive) { - logger.warn("This cycles interval means zero total:" + this); - } +// if (first_inclusive==last_exclusive) { +// logger.warn("This cycles interval means zero total:" + this); +// } } public static CyclesSpec parse(String spec) { diff --git a/nb-api/src/main/java/io/nosqlbench/nb/api/engine/activityimpl/ParameterMap.java b/nb-api/src/main/java/io/nosqlbench/nb/api/engine/activityimpl/ParameterMap.java index c92922249..29d7beedf 100644 --- a/nb-api/src/main/java/io/nosqlbench/nb/api/engine/activityimpl/ParameterMap.java +++ b/nb-api/src/main/java/io/nosqlbench/nb/api/engine/activityimpl/ParameterMap.java @@ -181,9 +181,9 @@ public class ParameterMap extends ConcurrentHashMap implements B public void set(String paramName, Object newValue) { - if (paramName.equals("cycles")) { - logger.warn("Setting 'cycles' on the parameter map is likely causing a bug in your activity. Call setCycles on the def instead."); - } +// if (paramName.equals("cycles")) { +// logger.warn("Setting 'cycles' on the parameter map is likely causing a bug in your activity. Call setCycles on the def instead."); +// } super.put(paramName, String.valueOf(newValue)); logger.info(() -> "setting param " + paramName + "=" + newValue); markMutation();