googleapis / googleapis/google-cloud-java

[java-firestore] Docs: Code snippet for City class does not match Android Java version

Open
#13,132 4 comments 0 reactions 0 assignees View on GitHub
api: firestore type: docs
Dominant language
Java
Stars
2.1k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
154

Description

#### Environment details

Documentation on https://firebase.google.com/

#### Steps to reproduce

1. Open the [Add data to Cloud Firestore](https://firebase.google.com/docs/firestore/manage-data/add-data) page in the docs.
2. Compare the "Java" and "Java Android" code snippets under [Custom objects](https://firebase.google.com/docs/firestore/manage-data/add-data#custom_objects)
3. Notice that there a significant inconsistencies, and that both versions only show part of the class.

#### External references such as API reference guides

- https://firebase.google.com/docs/firestore/manage-data/add-data#custom_objects
- https://firebase.google.com/docs/firestore/query-data/get-data#custom_objects

#### Any additional information below

Related issue on Android snippet https://github.com/firebase/snippets-android/issues/322

See pull request https://github.com/googleapis/java-firestore/pull/877

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.