Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

adhiggs
Copy link

@adhiggs adhiggs commented Feb 1, 2025

docs: update SpannerSample.java to align with best practices

Encapsulates both ResultSet statements in try-with-resources statements to align with best practices.

Fixes #3623 ☕️

Encapsulates both statements in a try-with-resources statement
@adhiggs adhiggs requested review from a team as code owners February 1, 2025 02:29
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: spanner Issues related to the googleapis/java-spanner API. labels Feb 1, 2025
@adhiggs adhiggs changed the title Update SpannerSample.java fix: Update SpannerSample.java to align with best practices Feb 1, 2025
@adhiggs adhiggs changed the title fix: Update SpannerSample.java to align with best practices fix:Update SpannerSample.java to align with best practices Feb 1, 2025
@adhiggs adhiggs changed the title fix:Update SpannerSample.java to align with best practices docs: Update SpannerSample.java to align with best practices Feb 1, 2025
@adhiggs
Copy link
Author

adhiggs commented Feb 1, 2025

I don't work with github very often, so if I can get a hand in getting the tests passed, I would greatly appreciate it.

@sakthivelmanii
Copy link
Collaborator

@adhiggs please update your commit message to follow the convention. https://www.conventionalcommits.org/en/v1.0.0/

@adhiggs
Copy link
Author

adhiggs commented Feb 10, 2025

@adhiggs please update your commit message to follow the convention. https://www.conventionalcommits.org/en/v1.0.0/

@sakthivelmanii - I think I got it? PTAL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/java-spanner API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs: Update SpannerSample.java to align with best practices
2 participants