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()) {
|
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 {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue