json: showErrorsAndGetLeastErroneous is expected to return null in some cases

This commit is contained in:
Anton Lobov
2018-07-10 12:40:57 +02:00
parent c14d867036
commit a3630a619a
@@ -942,7 +942,7 @@ class JsonSchemaAnnotatorChecker {
* In this case we need to show the most "suitable" error messages
* - by detecting the most "likely" schema corresponding to the current entity
*/
@NotNull
@Nullable
private JsonSchemaObject showErrorsAndGetLeastErroneous(@NotNull List<JsonSchemaAnnotatorChecker> candidateErroneousCheckers,
@NotNull List<JsonSchemaObject> candidateErroneousSchemas) {
JsonSchemaObject current = null;