mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-23 15:40:44 -06:00
reduce ambiguous warnings
This commit is contained in:
parent
6125c390ae
commit
a6f6a4f71c
@ -28,9 +28,9 @@ public record CyclesSpec(long first_inclusive, long last_exclusive, String first
|
|||||||
if (first_inclusive>last_exclusive) {
|
if (first_inclusive>last_exclusive) {
|
||||||
throw new InvalidParameterException("cycles must start with a lower first cycle than last cycle");
|
throw new InvalidParameterException("cycles must start with a lower first cycle than last cycle");
|
||||||
}
|
}
|
||||||
if (first_inclusive==last_exclusive) {
|
// if (first_inclusive==last_exclusive) {
|
||||||
logger.warn("This cycles interval means zero total:" + this);
|
// logger.warn("This cycles interval means zero total:" + this);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
public static CyclesSpec parse(String spec) {
|
public static CyclesSpec parse(String spec) {
|
||||||
|
@ -181,9 +181,9 @@ public class ParameterMap extends ConcurrentHashMap<String, Object> implements B
|
|||||||
|
|
||||||
|
|
||||||
public void set(String paramName, Object newValue) {
|
public void set(String paramName, Object newValue) {
|
||||||
if (paramName.equals("cycles")) {
|
// 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.");
|
// 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));
|
super.put(paramName, String.valueOf(newValue));
|
||||||
logger.info(() -> "setting param " + paramName + "=" + newValue);
|
logger.info(() -> "setting param " + paramName + "=" + newValue);
|
||||||
markMutation();
|
markMutation();
|
||||||
|
Loading…
Reference in New Issue
Block a user