/**
* Return the value associated to the given id as a {@link String}.
* <p>
- * If no value is associated, take the default one if any.
+ * If no value is associated (or if it is empty!), take the default one if
+ * any.
*
* @param id
* the id of the value to get
}
}
- //TODO: is it ok? need to jDoc?
if (rep == null || rep.isEmpty()) {
return def;
}
}
/**
- * Reset the backing map to the content of the given bundle, or with default
+ * Reset the backing map to the content of the given bundle, or with NULL
* values if bundle is NULL.
*
* @param bundle
if (bundle != null) {
value = bundle.getString(id.name());
} else {
- value = meta.def();
+ value = null;
}
this.map.put(id.name(), value == null ? null : value.trim());