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
Avoid redundantly copying a map in Settings builder (#135187)
When putting an existing `Settings` object into a `Settings.Builder`, we
currently check if there are any legacy list setting keys (by checking
if there's one key ending in `.0`). The value of doing that there in
addition to doing it in the final `build()` method seems to be that
legacy settings can be overriden by subsequent calls to the same
builder, rather than the legacy settings overriding others at the end.
Instead of copying the existing settings' map to a temporary map, we can
put the keys directly into the builder's map and perform the legacy
settings check there.
0 commit comments