Skip to content

Commit abc11ce

Browse files
committed
Use DatastoreOptions.defaultInstance in site example
1 parent b28b307 commit abc11ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/site/resources/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ <h4>Example: Retrieve Datastore Entries</h4>
143143

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

0 commit comments

Comments
 (0)