Skip to content

Commit 22f728b

Browse files
author
Pascal Gélinas
committed
Fixed compilation problems following refactoring for 2.4.0.
1 parent 2645c38 commit 22f728b

File tree

2 files changed

+0
-140
lines changed

2 files changed

+0
-140
lines changed

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

-97
Original file line numberDiff line numberDiff line change
@@ -145,47 +145,6 @@ public PropertyName findNameForSerialization(Annotated a)
145145
return name;
146146
}
147147

148-
/* Ok, now: following contains quite a bit of duplication.
149-
* But it is still needed since trying to refactor things tends
150-
* to end in infinite loop or stack overflow... we can eventually
151-
* remove these methods once we are certain that core databinding
152-
* never calls these methods (perhaps with 2.3 or at latest 2.4)
153-
*/
154-
155-
@Deprecated
156-
@Override
157-
public String findSerializationName(AnnotatedField a)
158-
{
159-
PropertyName pname = _findXmlName(a);
160-
if (pname != null) {
161-
return pname.getSimpleName();
162-
}
163-
String name = super.findSerializationName(a);
164-
if (name == null) {
165-
if (a.hasAnnotation(JacksonXmlText.class)) {
166-
return "";
167-
}
168-
}
169-
return name;
170-
}
171-
172-
@Deprecated
173-
@Override
174-
public String findSerializationName(AnnotatedMethod a)
175-
{
176-
PropertyName pname = _findXmlName(a);
177-
if (pname != null) {
178-
return pname.getSimpleName();
179-
}
180-
String name = super.findSerializationName(a);
181-
if (name == null) {
182-
if (a.hasAnnotation(JacksonXmlText.class)) {
183-
return "";
184-
}
185-
}
186-
return name;
187-
}
188-
189148
@Override
190149
public PropertyName findNameForDeserialization(Annotated a)
191150
{
@@ -201,62 +160,6 @@ public PropertyName findNameForDeserialization(Annotated a)
201160
return name;
202161
}
203162

204-
@Deprecated
205-
@Override
206-
public String findDeserializationName(AnnotatedField a)
207-
{
208-
PropertyName pname = _findXmlName(a);
209-
if (pname != null) {
210-
return pname.getSimpleName();
211-
}
212-
String name = super.findDeserializationName(a);
213-
if (name == null) {
214-
if (a.hasAnnotation(JacksonXmlText.class)) {
215-
return "";
216-
}
217-
}
218-
return name;
219-
}
220-
221-
@Deprecated
222-
@Override
223-
public String findDeserializationName(AnnotatedMethod a)
224-
{
225-
PropertyName pname = _findXmlName(a);
226-
if (pname != null) {
227-
return pname.getSimpleName();
228-
}
229-
String name = super.findDeserializationName(a);
230-
if (name == null) {
231-
if (a.hasAnnotation(JacksonXmlText.class)) {
232-
return "";
233-
}
234-
}
235-
return name;
236-
}
237-
238-
@Deprecated
239-
@Override
240-
public String findDeserializationName(AnnotatedParameter a)
241-
{
242-
PropertyName pname = _findXmlName(a);
243-
if (pname != null) {
244-
// empty name not acceptable...
245-
String local = pname.getSimpleName();
246-
if (local != null && local.length() > 0) {
247-
return local;
248-
}
249-
}
250-
// xml text still has special handling...
251-
String name = super.findDeserializationName(a);
252-
if (name == null) {
253-
if (a.hasAnnotation(JacksonXmlText.class)) {
254-
return "";
255-
}
256-
}
257-
return super.findDeserializationName(a);
258-
}
259-
260163
/*
261164
/**********************************************************************
262165
/* Overrides for non-public helper methods

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

-43
Original file line numberDiff line numberDiff line change
@@ -499,49 +499,6 @@ protected FromXmlParser _createParser(byte[] data, int offset, int len, IOContex
499499
return xp;
500500
}
501501

502-
/*
503-
/**********************************************************
504-
/* Deprecated internal factory methods for parser creation
505-
/**********************************************************
506-
*/
507-
508-
//protected IOContext _createContext(Object srcRef, boolean resourceManaged)
509-
510-
/**
511-
* Overridable factory method that actually instantiates desired
512-
* parser.
513-
*/
514-
@Override
515-
@Deprecated
516-
protected FromXmlParser _createJsonParser(InputStream in, IOContext ctxt)
517-
throws IOException, JsonParseException
518-
{
519-
return _createParser(in, ctxt);
520-
}
521-
522-
/**
523-
* Overridable factory method that actually instantiates desired
524-
* parser.
525-
*/
526-
@Override
527-
@Deprecated
528-
protected FromXmlParser _createJsonParser(Reader r, IOContext ctxt)
529-
throws IOException, JsonParseException
530-
{
531-
return _createParser(r, ctxt);
532-
}
533-
534-
/**
535-
* Overridable factory method that actually instantiates desired
536-
* parser.
537-
*/
538-
@Override
539-
@Deprecated
540-
protected FromXmlParser _createJsonParser(byte[] data, int offset, int len, IOContext ctxt)
541-
throws IOException, JsonParseException
542-
{
543-
return _createParser(data, offset, len, ctxt);
544-
}
545502

546503
/*
547504
/**********************************************************************

0 commit comments

Comments
 (0)