You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ss...@apache.org on 2014/11/10 19:23:41 UTC
marmotta git commit: KiWi: - fix handling of floating-decimal
conversion
Repository: marmotta
Updated Branches:
refs/heads/develop 37867a109 -> 20c6dca47
KiWi:
- fix handling of floating-decimal conversion
Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/20c6dca4
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/20c6dca4
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/20c6dca4
Branch: refs/heads/develop
Commit: 20c6dca47eae2517ce719e16abddc52f0d02e40c
Parents: 37867a1
Author: Sebastian Schaffert <ss...@apache.org>
Authored: Mon Nov 10 19:24:18 2014 +0100
Committer: Sebastian Schaffert <ss...@apache.org>
Committed: Mon Nov 10 19:24:18 2014 +0100
----------------------------------------------------------------------
.../java/org/apache/marmotta/kiwi/model/rdf/KiWiDoubleLiteral.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/marmotta/blob/20c6dca4/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/model/rdf/KiWiDoubleLiteral.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/model/rdf/KiWiDoubleLiteral.java b/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/model/rdf/KiWiDoubleLiteral.java
index 2f367d6..c47b3c4 100644
--- a/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/model/rdf/KiWiDoubleLiteral.java
+++ b/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/model/rdf/KiWiDoubleLiteral.java
@@ -68,7 +68,7 @@ public class KiWiDoubleLiteral extends KiWiStringLiteral {
this.doubleContent = doubleContent;
if(XSD.Decimal.equals(getType())) {
- this.content = new BigDecimal(doubleContent).toString();
+ this.content = new BigDecimal(doubleContent.toString()).toString();
} else {
this.content = doubleContent.toString();
}