minor: fixed improper put that should be get
This commit is contained in:
parent
2959d83ed2
commit
4a97626c4f
|
|
@ -104,7 +104,7 @@ public final class DefaultConfiguration implements Configuration {
|
|||
* @param value the value of the attribute.
|
||||
*/
|
||||
public void addAttribute(String attributeName, String value) {
|
||||
final String current = attributeMap.put(attributeName, value);
|
||||
final String current = attributeMap.get(attributeName);
|
||||
if (current == null) {
|
||||
attributeMap.put(attributeName, value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue