Skip to content

Commit

Permalink
issue #75: fix Validation memory management
Browse files Browse the repository at this point in the history
  • Loading branch information
pkiraly committed Dec 19, 2020
1 parent db111b6 commit 1d357db
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/de/gwdg/metadataqa/marc/cli/Validator.java
Original file line number Diff line number Diff line change
Expand Up @@ -378,13 +378,23 @@ private char getSeparator() {
}

private void printCollectorEntry(Integer errorId, Set<String> recordIds) {
print(collectorFile, String.valueOf(errorId) + separator);
boolean isFirst = true;
for (String recordId : recordIds) {
print(collectorFile, (isFirst ? "" : ";") + recordId);
if (isFirst)
isFirst = false;
}
print(collectorFile, "\n");
/*
print(
collectorFile,
String.format(
"%d%s%s%n",
errorId, separator, StringUtils.join(recordIds, ";")
)
);
*/
}

private void print(File file, String message) {
Expand Down

0 comments on commit 1d357db

Please sign in to comment.