File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,6 @@ <h4>Example: Retrieve Datastore Entries</h4>
146146// Authentication is automatic inside Google Compute Engine
147147// and Google App Engine.
148148DatastoreOptions options = DatastoreOptions.builder().build();
149-
150149Datastore datastore = DatastoreFactory.instance().get(options);
151150KeyFactory keyFactory = datastore.newKeyFactory().kind(< span class ="hljs-string "> KIND</ span > );
152151Key key = keyFactory.newKey(keyName);
@@ -167,7 +166,6 @@ <h4>Example: Retrieve Datastore Entries</h4>
167166 .projectId(< span class ="hljs-string "> PROJECT_ID</ span > )
168167 .authCredentials(AuthCredentials.createForJson(
169168 new FileInputStream(< span class ="hljs-string "> PATH_TO_JSON_KEY</ span > ))).build();
170-
171169Datastore datastore = DatastoreFactory.instance().get(options);
172170KeyFactory keyFactory = datastore.newKeyFactory().kind(< span class ="hljs-string "> KIND</ span > );
173171Key key = keyFactory.newKey(keyName);
You can’t perform that action at this time.
0 commit comments