Do not use BigInteger in 'range' argument 56/95056/1
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 7 Feb 2021 11:04:23 +0000 (12:04 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 7 Feb 2021 11:06:20 +0000 (12:06 +0100)
commit1670a27439842063b501ddff95d07b6bc9920297
tree09d8b5913ce50343a74f24f63a5f363fa870b761
parent9cb7a1889a5a032cbebf8543b614575792d97035
Do not use BigInteger in 'range' argument

The only production allowed here is 'integer-value', which is
logically clamped to int64/uint64 range. Use Long/Uint64 to represent
these, so that we lower our memory footprint.

JIRA: YANGTOOLS-1206
Change-Id: I1d186d0ed0211ac0fa996fe93d6cd7aa28442520
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/range/RangeStatementSupport.java