Skip to content

Commit 2604810

Browse files
author
Shun Fan
committed
Merge pull request GoogleCloudPlatform#94 from GoogleCloudPlatform/datastore-indentation-fix
Indentation fix in datastore samples
2 parents 2c88e44 + 859a981 commit 2604810

File tree

1 file changed

+4
-5
lines changed
  • datastore/src/main/java/com/google/datastore/snippets

1 file changed

+4
-5
lines changed

datastore/src/main/java/com/google/datastore/snippets/Concepts.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -973,14 +973,13 @@ public void testPropertyByKindRunQuery() {
973973
public void testPropertyFilteringRunQuery() {
974974
setUpQueryTests();
975975
// [START property_filtering_run_query]
976-
Key key =
977-
datastore.newKeyFactory()
976+
Key key = datastore.newKeyFactory()
978977
.kind("__property__")
979-
.ancestors(PathElement.of("__kind__", "Task"))
980-
.newKey("priority");
978+
.ancestors(PathElement.of("__kind__", "Task"))
979+
.newKey("priority");
981980
Query<Key> query = Query.keyQueryBuilder()
982981
.kind("__property__")
983-
.filter(PropertyFilter.ge("__key__", key))
982+
.filter(PropertyFilter.ge("__key__", key))
984983
.build();
985984
Map<String, Collection<String>> propertiesByKind = new HashMap<>();
986985
QueryResults<Key> results = datastore.run(query);

0 commit comments

Comments
 (0)