cut off trailing whitespace on property values

This commit is contained in:
hns 2002-10-03 11:40:58 +00:00
parent 2e46e4c121
commit 956ec3d3a8

View file

@ -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