Unify Decimal64 checks 59/107559/3
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 29 Aug 2023 18:15:38 +0000 (20:15 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 29 Aug 2023 19:17:19 +0000 (21:17 +0200)
commit3c2f456bded165df434526e29c2314679e5e150a
tree31170b1051c02f2be6ea6e07879811bde1a86ce6
parent255451ce42cc6ce5f9e91948c8dbeee94d324e05
Unify Decimal64 checks

Sonar is pointing out string duplications. Take advantange of automatic
upcast-to-long to allocate the IAE/AE in a single place.

Change-Id: I8e8bc2003abe6ba2b31124aa6cff5afc6a901b02
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Decimal64.java