|
@@ -29,7 +29,6 @@ import java.lang.invoke.CallSite;
|
|
|
import java.lang.invoke.MethodHandle;
|
|
|
import java.lang.invoke.MethodHandles;
|
|
|
import java.lang.invoke.MethodType;
|
|
|
-import java.math.BigInteger;
|
|
|
import java.time.ZonedDateTime;
|
|
|
import java.util.BitSet;
|
|
|
import java.util.Collections;
|
|
@@ -761,8 +760,6 @@ public final class Def {
|
|
|
return (float)value;
|
|
|
} else if (value instanceof Double) {
|
|
|
return (double)value;
|
|
|
- } else if (value instanceof BigInteger) {
|
|
|
- return ((BigInteger)value).doubleValue();
|
|
|
} else {
|
|
|
throw new ClassCastException("cannot implicitly cast " +
|
|
|
"def [" + PainlessLookupUtility.typeToUnboxedType(value.getClass()).getCanonicalName() + "] to " +
|
|
@@ -895,8 +892,7 @@ public final class Def {
|
|
|
value instanceof Integer ||
|
|
|
value instanceof Long ||
|
|
|
value instanceof Float ||
|
|
|
- value instanceof Double ||
|
|
|
- value instanceof BigInteger
|
|
|
+ value instanceof Double
|
|
|
) {
|
|
|
return ((Number)value).doubleValue();
|
|
|
} else {
|
|
@@ -1035,8 +1031,6 @@ public final class Def {
|
|
|
return (double)(float)value;
|
|
|
} else if (value instanceof Double) {
|
|
|
return (Double) value;
|
|
|
- } else if (value instanceof BigInteger) {
|
|
|
- return ((BigInteger)value).doubleValue();
|
|
|
} else {
|
|
|
throw new ClassCastException("cannot implicitly cast " +
|
|
|
"def [" + PainlessLookupUtility.typeToUnboxedType(value.getClass()).getCanonicalName() + "] to " +
|
|
@@ -1183,8 +1177,7 @@ public final class Def {
|
|
|
value instanceof Integer ||
|
|
|
value instanceof Long ||
|
|
|
value instanceof Float ||
|
|
|
- value instanceof Double ||
|
|
|
- value instanceof BigInteger
|
|
|
+ value instanceof Double
|
|
|
) {
|
|
|
return ((Number)value).doubleValue();
|
|
|
} else {
|