diff --git a/json-path/src/main/java/com/jayway/jsonpath/internal/function/numeric/Max.java b/json-path/src/main/java/com/jayway/jsonpath/internal/function/numeric/Max.java index 27570bf65..3bd6dca33 100644 --- a/json-path/src/main/java/com/jayway/jsonpath/internal/function/numeric/Max.java +++ b/json-path/src/main/java/com/jayway/jsonpath/internal/function/numeric/Max.java @@ -6,7 +6,7 @@ * Created by mattg on 6/26/15. */ public class Max extends AbstractAggregation { - private Double max = Double.MIN_VALUE; + private Double max = -1*Double.MAX_VALUE; @Override protected void next(Number value) {