Skip to content

Commit

Permalink
Don't wrap markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
dbwiddis authored Nov 10, 2022
1 parent f68c002 commit a1865b4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions USER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ Transport transport = new RestClientTransport(restClient, new JacksonJsonpMapper
OpenSearchClient client = new OpenSearchClient(transport);
```

The `JacksonJsonpMapper` class (2.x versions) only supports Java 7 objects by default.
[Java 8 modules](https://github.com/FasterXML/jackson-modules-java8) to support JDK8 classes
such as the Date and Time API (JSR-310), `Optional`, and more can be used by including
[the additional datatype dependency](https://github.com/FasterXML/jackson-modules-java8#usage)
and adding the module. For example, to include JSR-310 classes:
The `JacksonJsonpMapper` class (2.x versions) only supports Java 7 objects by default. [Java 8 modules](https://github.com/FasterXML/jackson-modules-java8) to support JDK8 classes such as the Date and Time API (JSR-310), `Optional`, and more can be used by including [the additional datatype dependency](https://github.com/FasterXML/jackson-modules-java8#usage) and adding the module. For example, to include JSR-310 classes:

```java
Transport transport = new RestClientTransport(restClient,
Expand Down Expand Up @@ -139,4 +135,4 @@ client.delete(d -> d.index(index).id("1"));
```java
DeleteIndexRequest deleteIndexRequest = new DeleteRequest.Builder().index(index).build();
DeleteIndexResponse deleteIndexResponse = client.indices().delete(deleteIndexRequest);
```
```

0 comments on commit a1865b4

Please sign in to comment.