You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 30, 2026. It is now read-only.
Repository navigation
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
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.
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
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
Activity
[-]Update sample to use try-with-resources as a best practice[/-][+]fix:Update SpannerSample.java to align with best practices[/+][-]fix:Update SpannerSample.java to align with best practices[/-][+]docs: Update SpannerSample.java to align with best practices[/+]