Skip to content

Commit

Permalink
mapping contains generators' ids and svcs' ids: fixed generators only…
Browse files Browse the repository at this point in the history
… checkings
  • Loading branch information
Christian Biasuzzi committed Feb 27, 2017
1 parent fdbc031 commit a573320
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,11 @@ public void fillDictionary(EurostagDictionary dictionary, NameType nameType, Set
iidmIds.forEach(iidmId -> {
if (!dictionary.iidmIdExists(iidmId)) {
String esgId;
if ((nameType == NameType.GENERATOR) && (dicoMap.containsKey(iidmId))) {
if (dicoMap.containsKey(iidmId)) {
esgId = dicoMap.get(iidmId);
} else {
esgId = defaultStrategy.getEsgId(dictionary, nameType, iidmId);
if (nameType == NameType.GENERATOR) {
LOGGER.warn(" dico mapping not found for iidmId: '{}'; esgId: '{}' generated using CutName strategy", iidmId, esgId);
}
LOGGER.warn(" dico mapping not found for iidmId: '{}'; esgId: '{}' generated using CutName strategy", iidmId, esgId);
}
dictionary.add(iidmId, esgId);
LOGGER.debug("iidmId: '{}' ; esgId: '{}'", iidmId, esgId);
Expand Down

0 comments on commit a573320

Please sign in to comment.