spmallette opened a new pull request, #3627:
URL: https://github.com/apache/tinkerpop/pull/3627

   The GraphSON section of the IO reference showed two Java writer examples 
that do not compile.
   
   - `graph.io(IoCore.graphson()).writer()` returns a `GraphSONWriter.Builder`, 
not a `GraphWriter`, so a `.create()` call is required.
   - `writer.writeGraph("tinkerpop-modern.json")` does not compile because 
`writeGraph` has no String overload. The real signature is 
`writeGraph(OutputStream, Graph)`.
   
   This corrects both snippets and adds the imports they reference (`Graph`, 
`GraphWriter`, `IoCore`, `TinkerFactory`, `FileOutputStream`, and 
`OutputStream` for the `writeObject` example). It also adds a short snippet 
showing the `wrapAdjacencyList(true)` builder form immediately before the 
wrapped adjacency-list JSON output, so the example that produces that 
valid-JSON document is shown alongside it.
   
   The static JSON output blocks and the unrelated GraphSON mapper/version 
sections are unchanged. Only `docs/src/dev/io/graphson.asciidoc` is touched.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to