Skip to content

Commit ff0a069

Browse files
authored
Merge pull request #102 from mcliedtke/ion_dev
[ion] Make IonValueModule public for use outside of IonValueMapper
2 parents c0e6670 + e783ec0 commit ff0a069

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

ion/src/main/java/com/fasterxml/jackson/dataformat/ion/ionvalue/IonValueMapper.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
/**
2828
* Supports serializing Ion to POJO and back using the Jackson Ion framework.
2929
*
30-
* Direct serialization to and from IonValue fields is supported. The POJO can declare fields subclassing IonValue and
31-
* the direct value will be provided.
30+
* Direct serialization to and from IonValue fields is supported. The POJO can declare fields of type IonValue (or a
31+
* subclass) and the direct value will be provided.
3232
*
3333
* Enums are serialized as symbols by default.
3434
*/

ion/src/main/java/com/fasterxml/jackson/dataformat/ion/ionvalue/IonValueModule.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,15 @@
1919

2020
import software.amazon.ion.Timestamp;
2121

22-
class IonValueModule extends SimpleModule {
22+
/**
23+
* A module which allows for the direct serialization to and from IonValue fields. The POJO can declare fields of type
24+
* IonValue (or a subclass) and the direct value will be provided.
25+
*/
26+
public class IonValueModule extends SimpleModule {
2327

2428
private static final long serialVersionUID = 1L;
2529

26-
IonValueModule() {
30+
public IonValueModule() {
2731
super("IonValueModule", PackageVersion.VERSION);
2832
addSerializer(new TimestampSerializer());
2933
addSerializer(new IonValueSerializer());

0 commit comments

Comments
 (0)