Skip to content
Snippets Groups Projects
Commit 15ff26ef authored by Jiman Kim's avatar Jiman Kim
Browse files

format

parent 76b85317
Branches log-fix
No related tags found
1 merge request!115Fix high priority validation that allowed for CR/LF Injection in Logs
Pipeline #289239 failed
......@@ -66,7 +66,7 @@ public class SchemaValidatorService implements SchemaValidator {
}
private void createAndThrowException(Set<ValidationMessage> validationMessages,
@NotNull ObjectNode schemaNode) {
@NotNull ObjectNode schemaNode) {
JsonNode schemaSource = schemaNode.findValue("x-osdu-schema-source");
String schemaSourceName = schemaSource != null ? schemaSource.asText() : "null";
schemaSourceName = StringEscapeUtils.escapeJava(schemaSourceName);
......@@ -80,7 +80,7 @@ public class SchemaValidatorService implements SchemaValidator {
private String[] collectValidationMessages(Set<ValidationMessage> validationMessages) {
return validationMessages.stream()
.map(ValidationMessage::toString)
.toArray(String[]::new);
.map(ValidationMessage::toString)
.toArray(String[]::new);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment