Bruno P. Kinoshita created JENA-1654:
----------------------------------------
Summary: Use StringBuilder in LiteralImpl#asNumber
Key: JENA-1654
URL: https://issues.apache.org/jira/browse/JENA-1654
Project: Apache Jena
Issue Type: Improvement
Components: Core
Affects Versions: Jena 3.9.0
Reporter: Bruno P. Kinoshita
Assignee: Bruno P. Kinoshita
Fix For: Jena 3.10.0
Trivial fix, but replaces strings concatenations by a StringBuilder. Another
change (which originated this work) is the removal of the unused local variable
"type".
Added a unit test for asNumber (working branch), and another when the value of
the literal is not a Number. Also verified that the exception contains parts of
the text expected in the error message. The test runs fine before the patch,
and after the patch.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)