From d3f02d3226543dc63ea84aba45bfb9a45e44d588 Mon Sep 17 00:00:00 2001 From: arpit-at Date: Mon, 10 Jun 2024 18:31:32 +0530 Subject: [PATCH] DG-1374 PR review added --- .../store/graph/v2/preprocessor/ConnectionPreProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/preprocessor/ConnectionPreProcessor.java b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/preprocessor/ConnectionPreProcessor.java index 9499ff67a9..b9e3710259 100644 --- a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/preprocessor/ConnectionPreProcessor.java +++ b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/preprocessor/ConnectionPreProcessor.java @@ -204,7 +204,7 @@ private void processUpdateConnection(EntityMutationContext context, AtlasStruct // if the list is empty -> we want to remove all elements // if the list is non-empty -> we want to replace private List determineFinalState(List newAdmins, List currentAdmins) { - return newAdmins == null ? currentAdmins : newAdmins.isEmpty() ? new ArrayList<>() : newAdmins; + return newAdmins == null ? currentAdmins : newAdmins; } private boolean allEmpty(List... lists) {