Revision 57196
Added by Claudio Atzori over 4 years ago
modules/dnet-openaireplus-mapping-utils/trunk/src/main/java/eu/dnetlib/data/transform/AuthorMerger.java | ||
---|---|---|
24 | 24 |
} |
25 | 25 |
|
26 | 26 |
public static List<Author> merge(final Collection<List<Author>> authors) { |
27 |
return doMerge( |
|
28 |
authors.stream() |
|
29 |
.map(group -> group.stream() |
|
30 |
.map(AuthorMerger::fixORCID) |
|
31 |
.collect(toList())) |
|
32 |
.collect(toList())); |
|
27 |
try { |
|
28 |
return doMerge( |
|
29 |
authors.stream() |
|
30 |
.map(group -> group.stream() |
|
31 |
.map(AuthorMerger::fixORCID) |
|
32 |
.collect(toList())) |
|
33 |
.collect(toList())); |
|
34 |
} catch (Throwable e) { |
|
35 |
e.printStackTrace(); |
|
36 |
throw e; |
|
37 |
} |
|
33 | 38 |
} |
34 | 39 |
|
35 | 40 |
private static List<Author> doMerge(final Collection<List<Author>> authors) { |
Also available in: Unified diff
still working out NPE during integration test on AbstractAuthorMergerTest.doTestMergeAuthorGroup