Do not convert all values to strings.
This commit is contained in:
parent
a32b4f2c86
commit
5fe2b74d30
1 changed files with 2 additions and 2 deletions
|
@ -482,8 +482,8 @@ public class ResourceProperties extends Properties {
|
||||||
* @return the old value, if an old value got replaced
|
* @return the old value, if an old value got replaced
|
||||||
*/
|
*/
|
||||||
public Object put(Object key, Object value) {
|
public Object put(Object key, Object value) {
|
||||||
if (value != null) {
|
if (value instanceof String) {
|
||||||
value = value.toString().trim();
|
value = ((String) value).trim();
|
||||||
}
|
}
|
||||||
String strkey = key.toString();
|
String strkey = key.toString();
|
||||||
if (ignoreCase) {
|
if (ignoreCase) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue