Merge pull request #881 from altrisi/deprecate-old-booleans

Deprecate old boolean constructor and move existing usages
This commit is contained in:
gnembon authored and GitHub committed 2021-05-25 00:50:11 -03:00
commit c60167405d
14 files changed
+59 -47

No files matched your search

@@ -227,6 +227,13 @@ public class NumericValue extends Value
this.longValue = value;
this.value = (double)value;
}
/**
* Creates a legacy {@link NumericValue} for a {@code boolean}.
* @param boolval The boolean to set 1 or 0 for this {@link NumericValue}
* @deprecated Use {@link BooleanValue#of(boolean)} instead
*/
@Deprecated
public NumericValue(boolean boolval)
{
this(boolval?1L:0L);