Skip to content

Commit

Permalink
Make note of a scenario that could trigger a special case
Browse files Browse the repository at this point in the history
  • Loading branch information
agarciadom committed Dec 18, 2024
1 parent c7ae549 commit 56d3980
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private Collection<Object> filterByPreferredLanguage(Collection<Object> value, L
RDFLiteral literal = (RDFLiteral) element;
literalsByTag.put(literal.getLanguage() == null ? "" : literal.getLanguage(), literal);
} else {
// TODO see if we run into this scenario, print some warning, return value as is as fallback
// TODO see if we run into this scenario (perhaps with integers instead of strings?), print some warning, return value as is as fallback
throw new IllegalArgumentException("Expected RDFLiteral while filtering based on preferred languages, but got " + element);
}
}
Expand Down

0 comments on commit 56d3980

Please sign in to comment.