Skip to content

Commit

Permalink
MET-5632 revert the method visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jeortizquan committed Jan 16, 2024
1 parent ab626e5 commit c23d0c9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private static Date convertToDate(String dateString) {
return Date.from(Instant.from(DateTimeFormatter.ISO_OFFSET_DATE_TIME.parse(dateString)));
}

protected static <S, T> List<T> convertList(List<S> sourceList, Function<S, T> converter,
private static <S, T> List<T> convertList(List<S> sourceList, Function<S, T> converter,
boolean returnNullIfEmpty) {
final List<T> result = sourceList.stream().map(converter).collect(Collectors.toList());
if (result.isEmpty() && returnNullIfEmpty) {
Expand All @@ -50,7 +50,7 @@ protected static <S, T> List<T> convertList(List<S> sourceList, Function<S, T> c
return result;
}

protected static List<QualityAnnotation> getQualityAnnotations(RdfWrapper rdfWrappedRecord) {
private static List<QualityAnnotation> getQualityAnnotations(RdfWrapper rdfWrappedRecord) {
return rdfWrappedRecord.getAggregations()
.stream()
.flatMap(qa -> {
Expand Down Expand Up @@ -96,7 +96,7 @@ public FullBeanImpl convertRdfToFullBean(RdfWrapper record) {
final Optional<EuropeanaAggregationType> europeanaAggregation = record
.getEuropeanaAggregation();
fullBean.setEuropeanaAggregation(
europeanaAggregation.map(new EuropeanaAggregationFieldInput(qualityAnnotationsList)).orElse(null));
europeanaAggregation.map(new EuropeanaAggregationFieldInput()).orElse(null));
europeanaAggregation.map(EuropeanaAggregationType::getCompleteness).map(LiteralType::getString)
.map(Integer::parseInt).ifPresent(fullBean::setEuropeanaCompleteness);
fullBean.setTimestampCreated(
Expand Down

0 comments on commit c23d0c9

Please sign in to comment.