Minor performance improvements

This commit is contained in:
Graham Triggs 2017-09-18 10:27:47 +01:00
parent 9f9c6d610b
commit 7f47babcff
2 changed files with 2 additions and 6 deletions

View file

@ -75,9 +75,7 @@ public class AddConceptThroughObjectPropertyGenerator extends DefaultObjectPrope
if (!rangeVClass.isUnion()) { if (!rangeVClass.isUnion()) {
types.add(rangeVClass); types.add(rangeVClass);
} else { } else {
for (VClass unionComponent : rangeVClass.getUnionComponents()) { types.addAll(rangeVClass.getUnionComponents());
types.add(unionComponent);
}
} }
return types; return types;
} else { } else {

View file

@ -29,9 +29,7 @@ public class JsonObject {
} }
public void setOrganizationTypes(Set<String> givenOrganizationType) { public void setOrganizationTypes(Set<String> givenOrganizationType) {
for (String type : givenOrganizationType) { this.organizationType.addAll(givenOrganizationType);
this.organizationType.add(type);
}
} }
public String getEntityURI() { public String getEntityURI() {