Use Long.{MIN,MAX}_VALUE instead of open-coded value
[yangtools.git] / common / yang-common / src / main / java / org / opendaylight / yangtools / yang / common / Decimal64.java
index c50682c36026987db3931a67c5433e9e994d00a9..02bd64bb22d051a1e2c46069073f8723b6e23395 100644 (file)
@@ -172,8 +172,8 @@ public class Decimal64 extends Number implements CanonicalValue<Decimal64> {
         MIN_VALUE = new Decimal64[MAX_SCALE];
         MAX_VALUE = new Decimal64[MAX_SCALE];
         for (byte i = 0; i < MAX_SCALE; ++i) {
-            MIN_VALUE[i] = new Decimal64(i, -9223372036854775808L);
-            MAX_VALUE[i] = new Decimal64(i, 9223372036854775807L);
+            MIN_VALUE[i] = new Decimal64(i, Long.MIN_VALUE);
+            MAX_VALUE[i] = new Decimal64(i, Long.MAX_VALUE);
         }
     }