Skip to content

Commit 7ba46f8

Browse files
committed
MLH-1226 Optimize 3
1 parent 637711d commit 7ba46f8

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/AtlasJanusElement.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,18 +110,11 @@ public Set<String> getPropertyKeys() {
110110

111111
@Override
112112
public void removeProperty(String propertyName) {
113-
RequestContext context = RequestContext.get();
114113
Iterator<? extends Property<String>> it = getWrappedElement().properties(propertyName);
115114
while(it.hasNext()) {
116115
Property<String> property = it.next();
117116
property.remove();
118-
//fill the map for the entityGuid and remove value
119-
if (propertyName.startsWith(INTERNAL_PROPERTY_KEY_PREFIX)) {
120-
String entityGuid = this.getProperty(GUID_PROPERTY_KEY, String.class);
121-
if (StringUtils.isNotEmpty(entityGuid)) {
122-
context.getAllInternalAttributesMap().get(entityGuid).put(propertyName, null);
123-
}
124-
}
117+
recordInternalAttribute(propertyName, null);
125118
}
126119
}
127120

@@ -334,7 +327,6 @@ public void setPropertyFromElementsIds(String propertyName, List<AtlasElement> v
334327
@Override
335328
public void setPropertyFromElementId(String propertyName, AtlasElement value) {
336329
setProperty(propertyName, value.getId().toString());
337-
338330
}
339331

340332

0 commit comments

Comments
 (0)