in src/main/java/com/amazonaws/schemamanager/repo/datatypes/RepoSchemaMetadata.java [109:130]
public void merge(RepoSchemaMetadata other) {
if (other == null) {
return;
}
if (other.getSchemaName() != null &&!other.getSchemaName().isEmpty()) {
this.setSchemaName(other.getSchemaName());
}
if (other.getDefaultCompatibility() != null &&!other.getDefaultCompatibility().isEmpty()) {
this.setDefaultCompatibility(other.getDefaultCompatibility());
}
Map<String, Map<String, String>> otherSubjects = other.getSubjects();
if (otherSubjects != null && !otherSubjects.isEmpty()) {
if (this.subjects == null) {
this.subjects = otherSubjects;
}else {
otherSubjects.forEach((s, v) -> this.subjects.put(s, v));
}
}
}