You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2022/01/14 12:07:46 UTC

[tinkerpop] branch master updated: Minor documentation formatting tweaks CTR

This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/master by this push:
     new b0edd69  Minor documentation formatting tweaks CTR
b0edd69 is described below

commit b0edd695c08dd5ae3d3b9e9f10c85986c79163c0
Author: Stephen Mallette <st...@amazon.com>
AuthorDate: Fri Jan 14 07:07:23 2022 -0500

    Minor documentation formatting tweaks CTR
---
 CHANGELOG.asciidoc                                         |  2 +-
 docs/src/upgrade/release-3.6.x.asciidoc                    | 14 ++++++++------
 .../language/grammar/TraversalMethodVisitorTest.java       |  2 +-
 3 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc
index 6544cbe..2256c34 100644
--- a/CHANGELOG.asciidoc
+++ b/CHANGELOG.asciidoc
@@ -54,7 +54,7 @@ image::https://raw.githubusercontent.com/apache/tinkerpop/master/docs/static/ima
 * Changed `NumberHelper` to properly cast to `byte` and `short` rather than default coercing to `Integer`.
 * Modified some driver defaults (maximum content length, pool size, maximum in process) to be more consistent with one another.
 * Fixed a potential connection load balancing issue due to a race condition not updating the usage count.
-* Extended property() to allow for setting a map of property values.
+* Extended `property()`` to allow for setting a `Map` of property values.
 
 == TinkerPop 3.5.0 (The Sleeping Gremlin: No. 18 Entr'acte Symphonique)
 
diff --git a/docs/src/upgrade/release-3.6.x.asciidoc b/docs/src/upgrade/release-3.6.x.asciidoc
index 284f31d..8d8c990 100644
--- a/docs/src/upgrade/release-3.6.x.asciidoc
+++ b/docs/src/upgrade/release-3.6.x.asciidoc
@@ -549,20 +549,22 @@ link:https://tinkerpop.apache.org/docs/3.6.0/reference/#gremlin-python-differenc
 
 See: link:https://issues.apache.org/jira/browse/TINKERPOP-2650[TINKERPOP-2650]
 
-==== `property()` accepts a Map as an argument
+==== `property()` with Map
 
 The `property()` step has been extended to take a `Map` of property key/value pairs as an argument with two new signatures:
-```
+
+```text
 property(Map)
 property(Cardinality, Map)
 ```
-When called, each individual key/value pair in the map is saved as a property to the element.
-When the cardinality is specified, that cardinality will be applied to all elements in the map as they are saved to the element.
 
-If users need different cardinalities per property, then please use the existing pattern of stringing multiple property() calls together.
+When called, each individual key/value pair in the `Map` is saved as a property to the element. When the `Cardinality`
+is specified, that cardinality will be applied to all elements in the map as they are saved to the element.
 
-See: link:https://issues.apache.org/jira/browse/TINKERPOP-2665[TINKERPOP-2665]
+If users need different cardinalities per property, then please use the existing pattern of stringing multiple
+`property()`` calls together.
 
+See: link:https://issues.apache.org/jira/browse/TINKERPOP-2665[TINKERPOP-2665]
 
 === Upgrading for Providers
 
diff --git a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/language/grammar/TraversalMethodVisitorTest.java b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/language/grammar/TraversalMethodVisitorTest.java
index e3f6578..be1af46 100644
--- a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/language/grammar/TraversalMethodVisitorTest.java
+++ b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/language/grammar/TraversalMethodVisitorTest.java
@@ -702,7 +702,7 @@ public class TraversalMethodVisitorTest {
 
     @Test
     public void testTraversalMethod_property_Object() throws Exception {
-        LinkedHashMap<Object, Object> map = new LinkedHashMap<>();
+        final LinkedHashMap<Object, Object> map = new LinkedHashMap<>();
         map.put("key", "foo");
         map.put("key1", "bar");
         compare(g.V().property(map), eval("g.V().property(['key': 'foo', 'key1': 'bar'])"));