Skip to content

Commit

Permalink
Fixing unbelievably stupid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Jun 14, 2018
1 parent 3113401 commit 67dbf3f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -54,7 +54,7 @@ protected <T> void collect(String connIdAttrName, PropertyDelta<T> delta, PlusMi
// Force "update" for single-valued attributes instead of "add". This is saving one
// read in some cases. It should also make no substantial difference in such case.
// But it is working around some connector bugs.
deltaBuilder.addValueToReplace(connIdAttrName, connIdAttributeValues);
deltaBuilder.addValueToReplace(connIdAttributeValues);
}
}
if (delta.isDelete()) {
Expand All @@ -69,7 +69,7 @@ protected <T> void collect(String connIdAttrName, PropertyDelta<T> delta, PlusMi
// But it is working around some connector bugs.
// update with EMTPY value. The connIdAttributeValues is NOT used in this branch
// Explicitly replace with empty list. Passing null here would mean "no replace in this delta".
deltaBuilder.addValueToReplace(connIdAttrName, Collections.EMPTY_LIST);
deltaBuilder.addValueToReplace(Collections.EMPTY_LIST);
}
}
if (delta.isReplace()) {
Expand Down

0 comments on commit 67dbf3f

Please sign in to comment.