Skip to content

Commit 294051d

Browse files
committed
Prep for Ion builder fix
1 parent 9ea3d74 commit 294051d

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

ion/src/main/java/com/fasterxml/jackson/dataformat/ion/IonObjectMapper.java

+14-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public Builder configure(IonGenerator.Feature feature, boolean state) {
104104

105105
/*
106106
/**********************************************************************
107-
/* Life-cycle
107+
/* Life-cycle, constructors
108108
/**********************************************************************
109109
*/
110110

@@ -135,6 +135,12 @@ protected IonObjectMapper(IonObjectMapper src) {
135135
super(src);
136136
}
137137

138+
/*
139+
/**********************************************************************
140+
/* Life-cycle, builders
141+
/**********************************************************************
142+
*/
143+
138144
/**
139145
* A builder for a mapper that will use textual writers by default. Same as
140146
* {@link #builderForTextualWriters()}.
@@ -189,6 +195,12 @@ public static Builder builder(IonFactory streamFactory) {
189195
return new Builder(new IonObjectMapper(streamFactory));
190196
}
191197

198+
/*
199+
/**********************************************************************
200+
/* Life-cycle, other
201+
/**********************************************************************
202+
*/
203+
192204
@Override
193205
public ObjectMapper copy() {
194206
_checkInvalidCopy(IonObjectMapper.class);
@@ -204,7 +216,7 @@ public Version version() {
204216
return PackageVersion.VERSION;
205217
}
206218

207-
/*
219+
/*
208220
/**********************************************************************
209221
/* Configuration
210222
/**********************************************************************

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

+26
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ public class IonValueMapper extends IonObjectMapper
3737
{
3838
private static final long serialVersionUID = 1L;
3939

40+
/*
41+
/**********************************************************************
42+
/* Life-cycle, constructors
43+
/**********************************************************************
44+
*/
45+
4046
/**
4147
* Constructor which provides a mapper with a null {@link PropertyNamingStrategy}.
4248
*
@@ -66,11 +72,31 @@ public IonValueMapper(IonSystem ionSystem, PropertyNamingStrategy strategy) {
6672
this.setPropertyNamingStrategy(strategy);
6773
}
6874

75+
/*
76+
/**********************************************************************
77+
/* Life-cycle, builders
78+
/**********************************************************************
79+
*/
80+
81+
// TODO: add overrides
82+
83+
/*
84+
/**********************************************************************
85+
/* Life-cycle, other
86+
/**********************************************************************
87+
*/
88+
6989
@Override // @since 2.18
7090
public ObjectMapper copy() {
7191
_checkInvalidCopy(IonValueMapper.class);
7292
return new IonValueMapper(this);
7393
}
94+
95+
/*
96+
/**********************************************************************
97+
/* Extended API
98+
/**********************************************************************
99+
*/
74100

75101
public <T> T parse(IonValue value, Class<T> clazz) throws IOException {
76102
if (value == null) {

0 commit comments

Comments
 (0)