Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-715

PropertiesConfiguration should not trim whitespace from the property value

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4
    • Component/s: None
    • Labels:
      None

      Description

      Currently, PropertiesConfiguration will trim all trailing whitespace from property values. This is different from how java.util.Properties behaves. The Javadoc explicitly states

      All remaining characters on the line become part of the associated element string

      The responsible code is in the method readProperty() of PropertiesReader.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Frettman Patrick Schmidt
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m