This fixes a compilation problem with RFC6991 yang-identifier, which has
unbounded length.
Change-Id: I4a4c142d3a18bae5eb85cca38c3d634777264c48
Signed-off-by: Robert Varga <rovarga@cisco.com>
*/
private StringType() {
final List<LengthConstraint> constraints = new ArrayList<LengthConstraint>();
- constraints.add(BaseConstraints.lengthConstraint(0, Long.MAX_VALUE, "", ""));
+ constraints.add(BaseConstraints.lengthConstraint(0, Integer.MAX_VALUE, "", ""));
lengthStatements = Collections.unmodifiableList(constraints);
patterns = Collections.emptyList();
}