You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2023/05/28 09:47:00 UTC
[jira] [Closed] (SUREFIRE-2164) Simplify serialization of elapsed time in StatelessXmlReporter
[ https://issues.apache.org/jira/browse/SUREFIRE-2164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed SUREFIRE-2164.
------------------------------------
Resolution: Fixed
Fixed with [cba039eb4b4bd0fa048a96613f25821b0741eca9|https://gitbox.apache.org/repos/asf?p=maven-surefire.git;a=commit;h=cba039eb4b4bd0fa048a96613f25821b0741eca9].
> Simplify serialization of elapsed time in StatelessXmlReporter
> --------------------------------------------------------------
>
> Key: SUREFIRE-2164
> URL: https://issues.apache.org/jira/browse/SUREFIRE-2164
> Project: Maven Surefire
> Issue Type: Improvement
> Components: xml generation
> Affects Versions: 3.1.0
> Reporter: Michael Osipov
> Assignee: Michael Osipov
> Priority: Major
> Fix For: 3.1.1
>
>
> The current code uses a convoluted solution based on {{NumberFormat}} which refers to an outdated defintion on Ant's XML report file. These days, we can use {{String#valueOf()}} to serialize the string representation of a float value since:
> * Easier to understand and this is not human output (separation of concerns)
> * Ant's XMLJUnitResultFormatter does exactly the same with a double value.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)