Skip to content

Commit

Permalink
Review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
BertScholten committed Jun 7, 2024
1 parent be4e595 commit fa41073
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -134,7 +133,7 @@ private CustomFarmAnimalHousing convertStandardWithoutConversion(
final List<String> descriptionParts = new ArrayList<>();
Optional.ofNullable(standardLodging.getCode()).ifPresent(descriptionParts::add);
Optional.ofNullable(standardLodging.getLodgingSystemDefinitionCode()).ifPresent(descriptionParts::add);
customEmissions.setDescription(descriptionParts.stream().collect(Collectors.joining(", ")));
customEmissions.setDescription(String.join(", ", descriptionParts));
customEmissions.setFarmEmissionFactorType(FarmEmissionFactorType.PER_ANIMAL_PER_YEAR);
customEmissions.getEmissionFactors().put(Substance.NH3, 0.0);
// Warn the user that this source has been converted to custom animal housing.
Expand Down

0 comments on commit fa41073

Please sign in to comment.