Skip to content

Commit

Permalink
Use getters for DatastoreOptions and the Datastore service (#401)
Browse files Browse the repository at this point in the history
`defaultInstance()` and `service()` seem to be deprecated in favor of `getDefaultInstance()` and `getService()`
  • Loading branch information
glaforge authored and jmdobry committed Nov 16, 2016
1 parent 0b783b7 commit 47fb0c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
public class QuickstartSample {
public static void main(String... args) throws Exception {
// Instantiates a client
Datastore datastore = DatastoreOptions.defaultInstance().service();
Datastore datastore = DatastoreOptions.getDefaultInstance().getService();

// The kind for the new entity
String kind = "Task";
Expand Down

0 comments on commit 47fb0c5

Please sign in to comment.