Skip to content
This repository was archived by the owner on Aug 30, 2026. It is now read-only.
This repository was archived by the owner on Aug 30, 2026. It is now read-only.

docs: Update SpannerSample.java to align with best practices #3623

Closed

Description

@adhiggs

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Please run down the following list and make sure you've tried the usual "quick fixes":

If you are still having issues, please include as much information as possible:

static void readOnlyTransaction in the sample uses a try-with-resources statement in the second statement, but not the first statement. The associated pull request adds a try-with-resources statement to the first statement to make it compliant with best practices.

For more information, see b/372711568.

Activity

  1. added
    api: spannerIssues related to the googleapis/java-spanner API.
    samplesIssues that are directly related to samples.
    on Feb 1, 2025
  2. changed the title [-]Update sample to use try-with-resources as a best practice[/-] [+]fix:Update SpannerSample.java to align with best practices[/+] on Feb 1, 2025
  3. changed the title [-]fix:Update SpannerSample.java to align with best practices[/-] [+]docs: Update SpannerSample.java to align with best practices[/+] on Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: spannerIssues related to the googleapis/java-spanner API.samplesIssues that are directly related to samples.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions