firebase / firebase/firebase-admin-java

[FR] Improvement: Change updateChildren parameter to Map<String, ?>

未關閉
#917 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
needs-triage type: feature request
主要語言
Java
星號
620
分支
305
平均合併
3 小時 23 分鐘
30 天內合併 PR
1

描述

**Is your feature request related to a problem? Please describe.**
Various builders (e.g., `Map.of`) and language features (e.g., Groovy and Kotlin inline maps) create `Map` instances whose `V` bound is more strict than `Object`. Currently, the `DatabaseRef#updateChildren[Async]` interface won't accept these instances because it is defined as accepting `Map`.

**Describe the solution you'd like**
Since these method consume the map and do not modify it, they could be defined as `Map` to accept a map with any generic value type with no backwards incompatibility or other code changes.

**Describe alternatives you've considered**
Otherwise, passing in maps usually requires an explicit type declaration instead of `var` or an inline builder.

貢獻指南

開啟貢獻指南

研究方向

搜尋 DatabaseRef#updateChildren 和 updateChildrenAsync 進入點,然後檢查它們的宣告及任何相關測試。確認這些方法接受 Map,且不變更其現有的更新行為,並執行相關的 Java 測試套件。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
java
領域
databases
Issue 類型
功能
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
描述清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。