Skip to content

Commit 9e6f44b

Browse files
glaforgelesv
authored andcommitted
Use getters for DatastoreOptions and the Datastore service (#401)
`defaultInstance()` and `service()` seem to be deprecated in favor of `getDefaultInstance()` and `getService()`
1 parent 1d255d9 commit 9e6f44b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datastore/cloud-client/src/main/java/com/example/datastore/QuickstartSample.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
public class QuickstartSample {
2727
public static void main(String... args) throws Exception {
2828
// Instantiates a client
29-
Datastore datastore = DatastoreOptions.defaultInstance().service();
29+
Datastore datastore = DatastoreOptions.getDefaultInstance().getService();
3030

3131
// The kind for the new entity
3232
String kind = "Task";

0 commit comments

Comments
 (0)