Do not convert all values to strings.

This commit is contained in:
hns 2009-03-31 12:52:24 +00:00
parent a32b4f2c86
commit 5fe2b74d30

View file

@ -482,8 +482,8 @@ public class ResourceProperties extends Properties {
* @return the old value, if an old value got replaced
*/
public Object put(Object key, Object value) {
if (value != null) {
value = value.toString().trim();
if (value instanceof String) {
value = ((String) value).trim();
}
String strkey = key.toString();
if (ignoreCase) {