Skip to content

Commit 44195a6

Browse files
committed
sync with databind
1 parent 1348033 commit 44195a6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/main/java/com/fasterxml/jackson/dataformat/xml/XmlTypeResolverBuilder.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,14 @@ public XmlClassNameIdResolver(JavaType baseType, TypeFactory typeFactory,
147147
}
148148

149149
@Override
150-
public String idFromValue(Object value)
150+
public String idFromValue(DatabindContext ctxt, Object value)
151151
{
152-
return encodeXmlClassName(super.idFromValue(value));
152+
return encodeXmlClassName(super.idFromValue(ctxt, value));
153153
}
154154

155155
@Override
156-
public JavaType typeFromId(DatabindContext context, String id) throws IOException {
157-
return super.typeFromId(context, decodeXmlClassName(id));
156+
public JavaType typeFromId(DatabindContext ctxt, String id) throws IOException {
157+
return super.typeFromId(ctxt, decodeXmlClassName(id));
158158
}
159159
}
160160

@@ -168,14 +168,14 @@ public XmlMinimalClassNameIdResolver(JavaType baseType, TypeFactory typeFactory,
168168
}
169169

170170
@Override
171-
public String idFromValue(Object value)
171+
public String idFromValue(DatabindContext ctxt, Object value)
172172
{
173-
return encodeXmlClassName(super.idFromValue(value));
173+
return encodeXmlClassName(super.idFromValue(ctxt, value));
174174
}
175175

176176
@Override
177-
public JavaType typeFromId(DatabindContext context, String id) throws IOException {
178-
return super.typeFromId(context, decodeXmlClassName(id));
177+
public JavaType typeFromId(DatabindContext ctxt, String id) throws IOException {
178+
return super.typeFromId(ctxt, decodeXmlClassName(id));
179179
}
180180
}
181181
}

0 commit comments

Comments
 (0)