Skip to content

Commit

Permalink
Minor log addition to UnconfirmedTermOccurrenceRemover.
Browse files Browse the repository at this point in the history
  • Loading branch information
ledsoft committed Oct 14, 2024
1 parent bb23a4c commit fb08f3a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
import cz.cvut.kbss.termit.exception.FileContentProcessingException;
import cz.cvut.kbss.termit.util.TypeAwareByteArrayResource;
import cz.cvut.kbss.termit.util.TypeAwareResource;
import jakarta.annotation.Nonnull;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Node;
import org.jsoup.select.Elements;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.BufferedWriter;
import java.io.ByteArrayOutputStream;
Expand All @@ -19,6 +22,7 @@
*/
public class UnconfirmedTermOccurrenceRemover {

private static final Logger LOG = LoggerFactory.getLogger(UnconfirmedTermOccurrenceRemover.class);

/**
* Removes unconfirmed term occurrences from the specified input.
Expand All @@ -31,7 +35,8 @@ public class UnconfirmedTermOccurrenceRemover {
* @param input Input to process
* @return Processed content
*/
public TypeAwareResource removeUnconfirmedOccurrences(TypeAwareResource input) {
public TypeAwareResource removeUnconfirmedOccurrences(@Nonnull TypeAwareResource input) {
LOG.trace("Removing unconfirmed occurrences from file {}.", input.getFilename());
try {
final Document doc = Jsoup.parse(input.getInputStream(), StandardCharsets.UTF_8.name(), "");
doc.outputSettings().prettyPrint(false);
Expand Down

0 comments on commit fb08f3a

Please sign in to comment.