Skip to content

Commit

Permalink
Remove unnecessary lines from landing page examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mziccard committed Oct 1, 2015
1 parent 3123b93 commit da3c441
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/site/resources/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,15 @@ <h4>Example: Retrieve Datastore Entries</h4>
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(<span class="hljs-string">KIND</span>);
Key key = keyFactory.newKey(keyName);
Entity entity = datastore.get(key);


</code></pre></div>

<div hljs="" language="java" ng-show="selected == 'elsewhere'" class=""><pre>
Expand All @@ -167,7 +166,6 @@ <h4>Example: Retrieve Datastore Entries</h4>
.projectId(<span class="hljs-string">PROJECT_ID</span>)
.authCredentials(AuthCredentials.createForJson(
new FileInputStream(<span class="hljs-string">PATH_TO_JSON_KEY</span>))).build();

Datastore datastore = DatastoreFactory.instance().get(options);
KeyFactory keyFactory = datastore.newKeyFactory().kind(<span class="hljs-string">KIND</span>);
Key key = keyFactory.newKey(keyName);
Expand Down

0 comments on commit da3c441

Please sign in to comment.