ATLAS-2533: AtlasEntity is double classified Signed-off-by: nixonrodrigues <ni...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/354162d4 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/354162d4 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/354162d4 Branch: refs/heads/master Commit: 354162d4e35a69d870a3394f8cc0162d18130efe Parents: a70d73f Author: Sarath Subramanian <ssubraman...@hortonworks.com> Authored: Thu Apr 5 22:19:14 2018 -0700 Committer: nixonrodrigues <ni...@apache.org> Committed: Fri Apr 6 10:59:00 2018 +0530 ---------------------------------------------------------------------- .../main/java/org/apache/atlas/model/instance/AtlasEntity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/atlas/blob/354162d4/intg/src/main/java/org/apache/atlas/model/instance/AtlasEntity.java ---------------------------------------------------------------------- diff --git a/intg/src/main/java/org/apache/atlas/model/instance/AtlasEntity.java b/intg/src/main/java/org/apache/atlas/model/instance/AtlasEntity.java index 3954319..0e6f9c7 100644 --- a/intg/src/main/java/org/apache/atlas/model/instance/AtlasEntity.java +++ b/intg/src/main/java/org/apache/atlas/model/instance/AtlasEntity.java @@ -272,12 +272,12 @@ public class AtlasEntity extends AtlasStruct implements Serializable { List<AtlasClassification> c = this.classifications; if (c == null) { - c = new ArrayList<>(classifications); - - this.classifications = c; + c = new ArrayList<>(); } c.addAll(classifications); + + this.classifications = c; } private void init() {