import java.io.DataInput;
import java.io.IOException;
import java.io.StringReader;
-import java.math.BigDecimal;
import java.math.BigInteger;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.dom.DOMSource;
import org.opendaylight.yangtools.util.ImmutableOffsetMapTemplate;
+import org.opendaylight.yangtools.yang.common.Decimal64;
import org.opendaylight.yangtools.yang.common.Empty;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
return readStringBytes();
case LithiumValue.BIG_DECIMAL_TYPE:
- return new BigDecimal(input.readUTF());
+ return Decimal64.valueOf(input.readUTF());
case LithiumValue.BIG_INTEGER_TYPE:
return new BigInteger(input.readUTF());
// very low. We'd have to know the yang type but, even if we did, we can't let a null value pass upstream
// so we'd have to drop the leaf which might cause other issues.
case LithiumValue.NULL_TYPE:
- return Empty.getInstance();
+ return Empty.value();
default:
return null;