Update XXX to a FIXME 52/99352/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Jan 2022 10:28:17 +0000 (11:28 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Jan 2022 10:28:59 +0000 (11:28 +0100)
Promote a simple note to a full-blown FIXME, as it seems we should be
able to convert BigDecimal more efficiently than we do today.

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

index 1c9aa753e82923d4a9f620f17361b6fcf6cb58d4..233f9499cb82ccbe1785e9c19c0b60c76de6c36f 100644 (file)
@@ -205,7 +205,7 @@ public class Decimal64 extends Number implements CanonicalValue<Decimal64> {
     }
 
     public static Decimal64 valueOf(final BigDecimal decimalVal) {
-        // XXX: we should be able to do something smarter here
+        // FIXME: we should be able to do something smarter here using BigDecimal.unscaledValue() and BigDecimal.scale()
         return valueOf(decimalVal.toPlainString());
     }