reduce ambiguous warnings

This commit is contained in:
Jonathan Shook 2023-12-09 23:29:32 -06:00
parent 6125c390ae
commit a6f6a4f71c
2 changed files with 6 additions and 6 deletions

View File

@ -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) {

View File

@ -181,9 +181,9 @@ public class ParameterMap extends ConcurrentHashMap<String, Object> 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();