Skip to content

Commit

Permalink
#165 Making FilterResponse not be a final record class.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzonthemtn committed Nov 25, 2024
1 parent 09de3b8 commit d979148
Show file tree
Hide file tree
Showing 4 changed files with 175 additions and 128 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,9 @@ public BinaryDocumentFilterResponse filter(final List<String> policyNames, final
final FilterResponse filterResponse = unstructuredDocumentProcessor.process(policy, filters, postFilters, context, documentId, piece, line, attributes);

// Add all the found spans to the list of spans.
spans.addAll(filterResponse.explanation().appliedSpans());
spans.addAll(filterResponse.getExplanation().appliedSpans());

for (final Span span : filterResponse.explanation().appliedSpans()) {
for (final Span span : filterResponse.getExplanation().appliedSpans()) {
span.setCharacterStart(span.getCharacterStart() + offset);
span.setCharacterEnd(span.getCharacterEnd() + offset);
nonRelativeSpans.add(span);
Expand Down
Loading

0 comments on commit d979148

Please sign in to comment.