Skip to content

Commit

Permalink
MET-6103 Process review
Browse files Browse the repository at this point in the history
  • Loading branch information
stzanakis committed Sep 5, 2024
1 parent f7c4ed6 commit 7526b9e
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.nio.file.SimpleFileVisitor;
import java.nio.file.attribute.BasicFileAttributes;
import java.time.Instant;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.Predicate;
import org.apache.commons.io.FileUtils;
Expand All @@ -33,9 +34,7 @@ abstract class AbstractHttpHarvestIterator<R> implements HarvestingIterator<R, P
private final Path extractedDirectory;

protected AbstractHttpHarvestIterator(Path extractedDirectory) {
if (extractedDirectory == null) {
throw new IllegalStateException("Extracted directory is null. This should not happen.");
}
Objects.requireNonNull(extractedDirectory,"Extracted directory is null. This should not happen.");
this.extractedDirectory = extractedDirectory;
}

Expand Down Expand Up @@ -146,7 +145,7 @@ public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {
}
}

record FullRecordImpl(String relativeFilePath, ByteArrayInputStream entryContent) implements FullRecord {
private record FullRecordImpl(String relativeFilePath, ByteArrayInputStream entryContent) implements FullRecord {

@Override
public String getHarvestingIdentifier() {
Expand Down Expand Up @@ -174,7 +173,3 @@ public Instant getTimeStamp() {
}
}
}




0 comments on commit 7526b9e

Please sign in to comment.