Merge pull request #4 from rbkmoney/ft/fixed-dublicates

Fixed merge conflict in collector
This commit is contained in:
Pospolita Nikita 2020-10-22 18:47:58 +03:00 committed by GitHub
commit 678ede14ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

@ -1 +1 @@
Subproject commit e6b981649e073a2dbf646ab491212a2c951aeb19
Subproject commit f42e059d9ec93826ba4ad23232eed8ce67bd5486

View File

@ -6,7 +6,7 @@
<parent>
<groupId>com.rbkmoney</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.3.RELEASE</version>
<version>2.3.4.RELEASE</version>
</parent>
<artifactId>deanonimus</artifactId>

View File

@ -17,7 +17,7 @@ public class ContractConverter {
return Optional.ofNullable(contracts).orElse(Collections.emptyList())
.stream()
.map(this::convertToEntity)
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (a, b) -> a));
}
private Map.Entry<String, Contract> convertToEntity(com.rbkmoney.deanonimus.domain.Contract contract) {

View File

@ -17,7 +17,7 @@ public class ContractorConverter {
return Optional.ofNullable(contractors).orElse(Collections.emptyList())
.stream()
.map(this::convertToEntity)
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (a, b) -> a));
}
private Map.Entry<String, PartyContractor> convertToEntity(Contractor contractor) {

View File

@ -17,7 +17,7 @@ public class ShopConverter {
return Optional.ofNullable(shops).orElse(Collections.emptyList())
.stream()
.map(this::convertToEntity)
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (a, b) -> a));
}
private Map.Entry<String, Shop> convertToEntity(com.rbkmoney.deanonimus.domain.Shop shopDomain) {