Skip to content

Wrong example in documentation #6097

Description

@sann3

Environment details

  1. API: GCS
  2. OS type and version: all
  3. Java version: 8
  4. google-cloud-java version(s): 1.87.0

Steps to reproduce

  1. Goto https://github.com/googleapis/google-cloud-java/blob/master/google-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage/Storage.java
  2. check the documentation of the following method
    Page<Blob> list(String bucket, BlobListOption... options);
  3. Iterator<Blob> blobIterator = blobs.iterateAll(); is not correct
  4. It should be like
    Iterator<Blob> blobIterator = blobs.iterateAll().iterator();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: docsImprovement to the documentation for an API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions