Skip to content

Don't split declaration and initialization #839

Closed
@elharo

Description

@elharo

In which file did you encounter the issue?

https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/storage/json-api/src/main/java/StorageSample.java

Did you change the file? If so, how?

Change

    Objects objects;

    // Iterate through each page of results, and add them to our results list.
    do {
      objects = listRequest.execute();

to


    // Iterate through each page of results, and add them to our results list.
    do {
      Objects objects = listRequest.execute();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions