Minor performance improvements
This commit is contained in:
parent
9f9c6d610b
commit
7f47babcff
2 changed files with 2 additions and 6 deletions
|
@ -75,9 +75,7 @@ public class AddConceptThroughObjectPropertyGenerator extends DefaultObjectPrope
|
|||
if (!rangeVClass.isUnion()) {
|
||||
types.add(rangeVClass);
|
||||
} else {
|
||||
for (VClass unionComponent : rangeVClass.getUnionComponents()) {
|
||||
types.add(unionComponent);
|
||||
}
|
||||
types.addAll(rangeVClass.getUnionComponents());
|
||||
}
|
||||
return types;
|
||||
} else {
|
||||
|
|
|
@ -29,9 +29,7 @@ public class JsonObject {
|
|||
}
|
||||
|
||||
public void setOrganizationTypes(Set<String> givenOrganizationType) {
|
||||
for (String type : givenOrganizationType) {
|
||||
this.organizationType.add(type);
|
||||
}
|
||||
this.organizationType.addAll(givenOrganizationType);
|
||||
}
|
||||
|
||||
public String getEntityURI() {
|
||||
|
|
Loading…
Add table
Reference in a new issue