googleapis / googleapis/google-cloud-java

[java-datastore] Use Try-with-resources in Datastore samples

Open
#11,994 0 comments 0 reactions 0 assignees View on GitHub
api: datastore samples type: cleanup
Dominant language
Java
Stars
2.1k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
154

Description

In googleapis/java-datastore#1246 `Datastore` instance holds resources which needs to be closed, For this reason we need to update all samples with `try-with-resources`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.