ArrayDataType: add constructor without elementLength parameter

The elementLength parameter is unused when the base type isn't
dynamic, but the existing constructors require it to be specified.
This commit is contained in:
Nihal Jere 2024-04-02 13:31:51 -05:00
parent 2a7897c366
commit 880631356d

View file

@ -32,6 +32,15 @@ public class ArrayDataType extends DataTypeImpl implements Array {
private int elementLength;
private boolean deleted = false;
/**
* Constructs a new Array dataType.
* @param dataType the dataType of the elements in the array (null is not permitted).
* @param numElements the number of elements in the array (0 is permitted).
*/
public ArrayDataType(DataType dataType, int numElements) {
this(dataType, numElements, -1, null);
}
/**
* Constructs a new Array dataType.
* @param dataType the dataType of the elements in the array (null is not permitted).