Queries with no results return a null array
还没有人认领这个 Issue。
评估
调研方向
从 StatementBuilder 和 InventoryServiceInterface#getAdUnitsByStatement() 路径开始,然后查看 #214 中的相关讨论。检查其他查询实现中,空查询结果的 XYPage#getResults() 是如何生成的。完成的标准是每个受影响的实现都返回空数组,而不是 null。
由索引模型根据 Issue 内容生成。
描述
Hello!
This library allows you to query via StatementBuilder. When you run a query that returns no results, the XYPage#getResults() returns null. On my side, this has only been confirmed to be true with InventoryServiceInterface#getAdUnitsByStatement(), however it would be right to assume it is true for other query implementations as well.
Returning null arrays is an anti-pattern. Can this be fixed to return empty arrays instead? This has already been mentioned in #214.
- 主要语言
- Java
- 星标
- 234
- 派生
- 360
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
googleads/googleads-java-lib 的其他 Issue
-
googleads/googleads-java-lib#284 · 3 条评论 · 已指派 1 人 ·
-
难度 4/5 3-5 天 新手友好度 30/100
googleads/googleads-java-lib#273 ·
-
难度 4/5 3-5 天 新手友好度 25/100
googleads/googleads-java-lib#269 ·
-
enhancement P2
难度 5/5 一周以上 新手友好度 35/100
googleads/googleads-java-lib#268 · 2 条评论 · 2 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
googleads/googleads-java-lib#262 ·
查看 googleads/googleads-java-lib 的全部 Issue
相似的 Issue
-
certification
难度 1/5 1 小时以内 新手友好度 80/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's 未关闭bug ecr
难度 2/5 1-3 小时 新手友好度 75/100
-
Needs: Triage Type: Feature request
难度 2/5 1-3 小时 新手友好度 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 65/100
github/copilot-sdk#2760 ·