FIx JDK7 dep
This commit is contained in:
parent
7d659c88e5
commit
6168f4ab32
|
@ -14,6 +14,7 @@ import java.util.Set;
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.hl7.fhir.dstu3.conformance.ProfileUtilities;
|
import org.hl7.fhir.dstu3.conformance.ProfileUtilities;
|
||||||
import org.hl7.fhir.dstu3.context.IWorkerContext;
|
import org.hl7.fhir.dstu3.context.IWorkerContext;
|
||||||
import org.hl7.fhir.dstu3.context.IWorkerContext.ValidationResult;
|
import org.hl7.fhir.dstu3.context.IWorkerContext.ValidationResult;
|
||||||
|
@ -3204,12 +3205,12 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat
|
||||||
if (goodProfiles.size()==1) {
|
if (goodProfiles.size()==1) {
|
||||||
errors.addAll(goodProfiles.get(0));
|
errors.addAll(goodProfiles.get(0));
|
||||||
} else if (goodProfiles.size()==0) {
|
} else if (goodProfiles.size()==0) {
|
||||||
rule(errors, IssueType.STRUCTURE, ei.line(), ei.col(), ei.path, false, "Unable to find matching profile among choices: " + String.join("; ", profiles));
|
rule(errors, IssueType.STRUCTURE, ei.line(), ei.col(), ei.path, false, "Unable to find matching profile among choices: " + StringUtils.join("; ", profiles));
|
||||||
for (List<ValidationMessage> messages : badProfiles) {
|
for (List<ValidationMessage> messages : badProfiles) {
|
||||||
errors.addAll(messages);
|
errors.addAll(messages);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
warning(errors, IssueType.STRUCTURE, ei.line(), ei.col(), ei.path, false, "Found multiple matching profiles among choices: " + String.join("; ", goodProfiles.keySet()));
|
warning(errors, IssueType.STRUCTURE, ei.line(), ei.col(), ei.path, false, "Found multiple matching profiles among choices: " + StringUtils.join("; ", goodProfiles.keySet()));
|
||||||
for (List<ValidationMessage> messages : goodProfiles.values()) {
|
for (List<ValidationMessage> messages : goodProfiles.values()) {
|
||||||
errors.addAll(messages);
|
errors.addAll(messages);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue