cut off trailing whitespace on property values
This commit is contained in:
parent
2e46e4c121
commit
956ec3d3a8
1 changed files with 3 additions and 0 deletions
|
@ -160,6 +160,9 @@ public final class SystemProperties extends Properties {
|
|||
* otherwise changes will be lost whe the file is next modified.
|
||||
*/
|
||||
public Object put (Object key, Object value) {
|
||||
// cut off trailing whitespace
|
||||
if (value != null)
|
||||
value = value.toString().trim();
|
||||
if (newProps == null)
|
||||
return props.put (key.toString().toLowerCase(), value);
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue