Skip to content

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

Closed
@adhiggs

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.

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