r9558 - helma/helma/trunk/src/helma/util
| Newsgroups | gmane.comp.java.helma.cvs |
|---|---|
| Message-ID | <20090331125224.CDCC23D0D6@mia> |
Author: hannes
Date: 2009-03-31 14:52:24 +0200 (Tue, 31 Mar 2009)
New Revision: 9558
Modified:
helma/helma/trunk/src/helma/util/ResourceProperties.java
Log:
Do not convert all values to strings.
Details at http://dev.helma.org/trac/helma/changeset/9558
Modified: helma/helma/trunk/src/helma/util/ResourceProperties.java
===================================================================
--- helma/helma/trunk/src/helma/util/ResourceProperties.java 2009-03-31 11:54:21 UTC (rev 9557)
+++ helma/helma/trunk/src/helma/util/ResourceProperties.java 2009-03-31 12:52:24 UTC (rev 9558)
@@ -482,8 +482,8 @@
* @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) {