Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
When a list of classifications is added to an AtlasEntity, it gets added twice due to the following:
public void addClassifications(List<AtlasClassification> classifications) {
List<AtlasClassification> c = this.classifications;
if (c == null)
{ c = new ArrayList<>(classifications); this.classifications = c; } c.addAll(classifications);
}
This last line should be protected by an else clause.