Skip to content

Commit

Permalink
Use DatastoreOptions.defaultInstance in site example
Browse files Browse the repository at this point in the history
  • Loading branch information
mziccard committed Nov 11, 2015
1 parent b28b307 commit abc11ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/site/resources/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ <h4>Example: Retrieve Datastore Entries</h4>

// Authentication is automatic inside Google Compute Engine
// and Google App Engine.
DatastoreOptions options = DatastoreOptions.builder().build();
DatastoreOptions options = DatastoreOptions.defaultInstance();
Datastore datastore = options.service();
KeyFactory keyFactory = datastore.newKeyFactory().kind(<span class="hljs-string">KIND</span>);
Key key = keyFactory.newKey(keyName);
Expand Down

0 comments on commit abc11ce

Please sign in to comment.