You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's clean up EntityUpdate API. Different parts of the update object (attributes, relationship ids, object id) have inconsistent method names for accessing and changing the data. We need to aligh them. Also should probably ensure that internal maps are created lazily to lighten the objects.
Upgrade Notes
EntityUpdate internal collections are no longer directly mutable, so trying to do something like update.getAttributes().put("a", 1) would result in the following exception:
java.lang.UnsupportedOperationException
at java.base/java.util.AbstractMap.put(AbstractMap.java:209)
Instead, you should be using the new mutator methods, such as update.setAttribute("a", 1).
The text was updated successfully, but these errors were encountered:
Let's clean up EntityUpdate API. Different parts of the update object (attributes, relationship ids, object id) have inconsistent method names for accessing and changing the data. We need to aligh them. Also should probably ensure that internal maps are created lazily to lighten the objects.
Upgrade Notes
EntityUpdate
internal collections are no longer directly mutable, so trying to do something likeupdate.getAttributes().put("a", 1)
would result in the following exception:Instead, you should be using the new mutator methods, such as
update.setAttribute("a", 1)
.The text was updated successfully, but these errors were encountered: