Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions webapp/app/controllers/modules2/RangeCleanProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,18 @@ public void initModule(Map<String, String> options, long start, long end) {
super.initModule(options, start, end);
String minStr = options.get(MIN_KEY);
String maxStr = options.get(MAX_KEY);
long min = parseLong(minStr, "error");
long max = parseLong(maxStr, "error");
this.min = new BigDecimal(min);
this.max = new BigDecimal(max);
this.min = parseBigDecimal(minStr, "error");
this.max = parseBigDecimal(maxStr, "error");
}

@Override
public String init(String pathStr, ProcessorSetup nextInChain, VisitorInfo visitor, Map<String, String> options) {
String newPath = super.init(pathStr, nextInChain, visitor, options);
String minStr = params.getParams().get(0);
String maxStr = params.getParams().get(1);
String msg = "module url /rangeclean/{min}/{max} must be passed a long for min and max and was not passed that";
long min = parseLong(minStr, msg);
long max = parseLong(maxStr, msg);
this.min = new BigDecimal(min);
this.max = new BigDecimal(max);
String msg = "module url /rangeclean/{min}/{max} must be parsable as a BigDecimal for min and max and was not in the proper format";
this.min = parseBigDecimal(minStr, msg);
this.max = parseBigDecimal(maxStr, msg);
return newPath;
}

Expand Down