mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
allow inline deprecation of activity params
This commit is contained in:
@@ -224,8 +224,8 @@ public class ActivityDef implements NBNamedElement {
|
||||
if (this.parameterMap.containsKey(newName)) {
|
||||
throw new BasicError("You have specified activity param '" + deprecatedName + "' in addition to the valid name '" + newName +"'. Remove '" + deprecatedName + "'.");
|
||||
} else {
|
||||
logger.warn("Auto replacing deprecated activity param " + deprecatedName + " with new '" + newName +"="+ chars +".");
|
||||
parameterMap.put(newName,parameterMap.remove(deprecatedParam));
|
||||
logger.warn("Auto replacing deprecated activity param '" + deprecatedName + "="+ chars +"' with new '" + newName +"="+ chars +"'.");
|
||||
parameterMap.put(newName,parameterMap.remove(deprecatedName));
|
||||
}
|
||||
} else {
|
||||
throw new BasicError("Can't replace deprecated name with value of type " + deprecatedName.getClass().getCanonicalName());
|
||||
|
||||
Reference in New Issue
Block a user