Skip to content

Commit

Permalink
MSEARCH-829: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PBobylev committed Sep 6, 2024
1 parent ec73cc0 commit 8895b0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
import org.folio.search.service.lccn.LccnNormalizer;
import org.folio.search.service.setter.FieldProcessor;
import org.folio.search.service.setter.linkeddata.common.LinkedDataLccnProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class LinkedDataAuthorityLccnProcessor implements FieldProcessor<LinkedDataAuthority, Set<String>> {

private final LinkedDataLccnProcessor linkedDataLccnProcessor;

public LinkedDataAuthorityLccnProcessor(@Autowired LccnNormalizer lccnNormalizer) {
public LinkedDataAuthorityLccnProcessor(LccnNormalizer lccnNormalizer) {
this.linkedDataLccnProcessor = new LinkedDataLccnProcessor(lccnNormalizer);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public Set<String> getFieldValue(LinkedDataInstance linkedDataInstance) {
.map(LinkedDataWorkOnly::getNotes)
.stream()
.flatMap(Collection::stream);
var contributors = Stream.concat(instanceNotes, workNotes).toList();
return linkedDataNoteProcessor.getFieldValue(contributors);
var notes = Stream.concat(instanceNotes, workNotes).toList();
return linkedDataNoteProcessor.getFieldValue(notes);
}

}

0 comments on commit 8895b0a

Please sign in to comment.