From da3c441dc280fea1a544ccda2859f90a5b0bad72 Mon Sep 17 00:00:00 2001 From: Marco Ziccardi Date: Wed, 30 Sep 2015 20:26:09 +0200 Subject: [PATCH] Remove unnecessary lines from landing page examples --- src/site/resources/index.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/site/resources/index.html b/src/site/resources/index.html index 2bfa566ad26c..4daf4fa596f4 100644 --- a/src/site/resources/index.html +++ b/src/site/resources/index.html @@ -142,16 +142,15 @@

Example: Retrieve Datastore Entries

import com.google.gcloud.datastore.Key; import com.google.gcloud.datastore.KeyFactory; - // Authentication is automatic inside Google Compute Engine // and Google App Engine. DatastoreOptions options = DatastoreOptions.builder().build(); - Datastore datastore = DatastoreFactory.instance().get(options); KeyFactory keyFactory = datastore.newKeyFactory().kind(KIND); Key key = keyFactory.newKey(keyName); Entity entity = datastore.get(key); +
@@ -167,7 +166,6 @@ 

Example: Retrieve Datastore Entries

.projectId(PROJECT_ID) .authCredentials(AuthCredentials.createForJson( new FileInputStream(PATH_TO_JSON_KEY))).build(); - Datastore datastore = DatastoreFactory.instance().get(options); KeyFactory keyFactory = datastore.newKeyFactory().kind(KIND); Key key = keyFactory.newKey(keyName);