json-logic-java
json-logic-java copied to clipboard
Redundant storage of operations
The operations are stored in a List (expressions) and when the operation is overwritten, the old version remains in the Collection.
public final class JsonLogic {
private final List<JsonLogicExpression> expressions;
private final Map<String, JsonLogicNode> parseCache;
private JsonLogicEvaluator evaluator;
public JsonLogic() {
this.expressions = new ArrayList<>();
Fixed here: #40