Skip to content

Wrong example in documentation #6097

@sann3

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();

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