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
Map.replace is a slightly different case; there is no common superinterface between BuiltMap and Map, so the only way to accept either is to accept Object.
Possible ways forward: 1) get the SDK to add some superinterface e.g. HasEntries<K, V>; 2) add a lint that checks you pass only Map or BuiltMap; 3) change the API to have separate methods for accepting Map and BuiltMap.
I'll look at this when I get to looking at the other breaking changes, so this is the right issue for it.
e.g. making
replace
taking an Iterable and having a separate methodreplaceFrom
.It's a breaking API change, so we likely want to do all related improvements in one shot.
The text was updated successfully, but these errors were encountered: