Skip to content

Commit 6876b28

Browse files
committed
update afterburner/blackbird READMEs
1 parent 37c3717 commit 6876b28

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

afterburner/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Afterburner plugs in using standard `Module` interface.
55
## Status
66

77
Module is considered stable and has been used in production environments since version 2.2.
8+
There is, however, a potential future replacement available (as of Jackson 2.12): Blackbird module.
9+
See the parent README for details.
810

911
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.fasterxml.jackson.module/jackson-module-afterburner/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.fasterxml.jackson.module/jackson-module-afterburner/)
1012
[![Javadoc](https://javadoc-emblem.rhcloud.com/doc/com.fasterxml.jackson.module/jackson-module-afterburner/badge.svg)](http://www.javadoc.io/doc/com.fasterxml.jackson.module/jackson-module-afterburner)
@@ -19,7 +21,7 @@ To use module on Maven-based projects, use following dependency:
1921
<dependency>
2022
<groupId>com.fasterxml.jackson.module</groupId>
2123
<artifactId>jackson-module-afterburner</artifactId>
22-
<version>2.7.1</version>
24+
<version>2.12.0</version>
2325
</dependency>
2426
```
2527

@@ -36,8 +38,9 @@ Module jar is also a functional OSGi bundle, with proper import/export declarati
3638
To use the the Module in Jackson, simply register it with the ObjectMapper instance:
3739

3840
```java
39-
ObjectMapper mapper = new ObjectMapper()
40-
mapper.registerModule(new AfterburnerModule());
41+
ObjectMapper mapper = JsonMapper.builder()
42+
.addModule(new AfterburnerModule())
43+
.build();
4144
```
4245

4346
after which you just do data-binding as usual:

blackbird/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Blackbird passes all the original Afterburner tests (except a couple that didn't
2828

2929
### Maven dependency
3030

31-
Blackbird is available on Maven Central as of 2.10.0:
31+
Blackbird is available on Maven Central as of 2.12.0:
3232

3333
```xml
3434
<dependency>
@@ -42,8 +42,9 @@ Blackbird is available on Maven Central as of 2.10.0:
4242
To use the the Module in Jackson, simply register it with the ObjectMapper instance:
4343

4444
```java
45-
ObjectMapper mapper = new ObjectMapper()
46-
mapper.registerModule(new BlackbirdModule());
45+
ObjectMapper mapper = JsonMapper.builder()
46+
.addModule(new BlackbirdModule())
47+
.build();
4748
```
4849

4950
after which you just do data-binding as usual:

0 commit comments

Comments
 (0)