@Test public void shouldTolerateTrivialValue() { assertThat(CyclicValidationCheck.hasCyclicReferences(Collections.emptyMap())).isFalse(); }
static boolean hasCyclicReferences(final Map<String, ? extends OasSchema> schemaDefinitions) { if (schemaDefinitions.isEmpty()) { return false; } final Map<String, Set<String>> references = collectReferences(schemaDefinitions); return isCyclic(references); }
CyclicValidationCheck { static boolean hasCyclicReferences(final Map<String, ? extends OasSchema> schemaDefinitions) { if (schemaDefinitions.isEmpty()) { return false; } final Map<String, Set<String>> references = collectReferences(schemaDefinitions); return isCyclic(references); } }
CyclicValidationCheck { static boolean hasCyclicReferences(final Map<String, ? extends OasSchema> schemaDefinitions) { if (schemaDefinitions.isEmpty()) { return false; } final Map<String, Set<String>> references = collectReferences(schemaDefinitions); return isCyclic(references); } private  CyclicValidationCheck(); }
CyclicValidationCheck { static boolean hasCyclicReferences(final Map<String, ? extends OasSchema> schemaDefinitions) { if (schemaDefinitions.isEmpty()) { return false; } final Map<String, Set<String>> references = collectReferences(schemaDefinitions); return isCyclic(references); } private  CyclicValidationCheck();  }
CyclicValidationCheck { static boolean hasCyclicReferences(final Map<String, ? extends OasSchema> schemaDefinitions) { if (schemaDefinitions.isEmpty()) { return false; } final Map<String, Set<String>> references = collectReferences(schemaDefinitions); return isCyclic(references); } private  CyclicValidationCheck();   }