mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-26 01:05:38 +00:00
(chore) code cleanup
This commit is contained in:
parent
dfefb9d6d7
commit
3993bd3189
1 changed files with 2 additions and 7 deletions
|
|
@ -20,9 +20,7 @@
|
||||||
package de.kosit.validationtool.impl;
|
package de.kosit.validationtool.impl;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
@ -108,12 +106,9 @@ public class DefaultCheck implements Check {
|
||||||
protected XdmNode runCheckInternal(CheckAction.Bag t) {
|
protected XdmNode runCheckInternal(CheckAction.Bag t) {
|
||||||
long started = System.currentTimeMillis();
|
long started = System.currentTimeMillis();
|
||||||
log.info("Checking content of {}", t.getInput().getName());
|
log.info("Checking content of {}", t.getInput().getName());
|
||||||
Iterator<CheckAction> it = checkSteps.iterator();
|
|
||||||
|
|
||||||
|
for (final CheckAction action : checkSteps) {
|
||||||
while (it.hasNext()) {
|
|
||||||
long start = System.currentTimeMillis();
|
long start = System.currentTimeMillis();
|
||||||
final CheckAction action = it.next();
|
|
||||||
if (!action.isSkipped(t)) {
|
if (!action.isSkipped(t)) {
|
||||||
action.check(t);
|
action.check(t);
|
||||||
}
|
}
|
||||||
|
|
@ -121,7 +116,7 @@ public class DefaultCheck implements Check {
|
||||||
if (t.isStopped()) {
|
if (t.isStopped()) {
|
||||||
final ProcessingError processingError = t.getReportInput().getProcessingError();
|
final ProcessingError processingError = t.getReportInput().getProcessingError();
|
||||||
log.error("Error processing input {}: {}", t.getInput().getName(),
|
log.error("Error processing input {}: {}", t.getInput().getName(),
|
||||||
processingError != null ? processingError.getError().stream().collect(Collectors.joining("\n")) : "");
|
processingError != null ? String.join("\n", processingError.getError()) : "");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue