Skip to content

Commit 6836922

Browse files
committed
---
yaml --- r: 911 b: refs/heads/master c: 3123b93 h: refs/heads/master i: 909: e96f8ea 907: bc3d17b 903: a86c540 895: b92f5a2 v: v3
1 parent 5215ab2 commit 6836922

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
2-
refs/heads/master: 1311e0f45d0ce399f2f1a061175d4941f03af3fa
2+
refs/heads/master: 3123b930281df4ae74ffaf645907237fe74a7bf1
33
refs/heads/travis: 0fa997e2fc9c6b61b2d91e6d163655aae67d44b6
44
refs/heads/gh-pages: 5a10432ecc75f29812e33a8236c900379509fe99

trunk/src/site/resources/index.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,13 @@ <h4>Example: Retrieve Datastore Entries</h4>
145145

146146
// Authentication is automatic inside Google Compute Engine
147147
// and Google App Engine.
148-
DatastoreOptions options = DatastoreOptions.builder()
149-
.projectId(<span class="hljs-string">PROJECT_ID</span>)
150-
.build();
148+
DatastoreOptions options = DatastoreOptions.builder().build();
151149

152150
Datastore datastore = DatastoreFactory.instance().get(options);
153151
KeyFactory keyFactory = datastore.newKeyFactory().kind(<span class="hljs-string">KIND</span>);
154152
Key key = keyFactory.newKey(keyName);
155153
Entity entity = datastore.get(key);
154+
156155
</code></pre></div>
157156

158157
<div hljs="" language="java" ng-show="selected == 'elsewhere'" class=""><pre>
@@ -167,8 +166,7 @@ <h4>Example: Retrieve Datastore Entries</h4>
167166
DatastoreOptions options = DatastoreOptions.builder()
168167
.projectId(<span class="hljs-string">PROJECT_ID</span>)
169168
.authCredentials(AuthCredentials.createForJson(
170-
new FileInputStream(<span class="hljs-string">PATH_TO_JSON_KEY</span>)))
171-
.build();
169+
new FileInputStream(<span class="hljs-string">PATH_TO_JSON_KEY</span>))).build();
172170

173171
Datastore datastore = DatastoreFactory.instance().get(options);
174172
KeyFactory keyFactory = datastore.newKeyFactory().kind(<span class="hljs-string">KIND</span>);

0 commit comments

Comments
 (0)