minor: fixed improper put that should be get

This commit is contained in:
rnveach 2015-11-20 11:05:42 -05:00
parent 2959d83ed2
commit 4a97626c4f
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}