JBehave
  1. JBehave
  2. JBEHAVE-332

Refactor NumberConverter to use injectable NumberFormat

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Refactor NumberConverter to parse numbers using injectable NumberFormat, instead of Number classes' valueOf() methods.

      Locale-specific formats are supported via NumberFormat.getInstance(Locale), while defaulting to NumberFormat.getInstance().

      Also refactor NumberListConverter to use NumberConverter with provided NumberFormat, again defaulting to NumberFormat.getInstance().

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Mauro Talevi
            Reporter:
            Mauro Talevi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: