|
12 | 12 | import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
|
13 | 13 | import com.fasterxml.jackson.databind.cfg.HandlerInstantiator;
|
14 | 14 | import com.fasterxml.jackson.databind.cfg.MapperConfig;
|
15 |
| -import com.fasterxml.jackson.databind.type.TypeBindings; |
16 | 15 | import com.fasterxml.jackson.databind.util.Annotations;
|
17 | 16 | import com.fasterxml.jackson.databind.util.ClassUtil;
|
18 | 17 | import com.fasterxml.jackson.databind.util.Converter;
|
@@ -271,20 +270,6 @@ public Annotations getClassAnnotations() {
|
271 | 270 | return _classInfo.getAnnotations();
|
272 | 271 | }
|
273 | 272 |
|
274 |
| - @Override |
275 |
| - @Deprecated // since 2.7 |
276 |
| - public TypeBindings bindingsForBeanType() { |
277 |
| - return _type.getBindings(); |
278 |
| - } |
279 |
| - |
280 |
| - @Override |
281 |
| - @Deprecated // since 2.8 |
282 |
| - public JavaType resolveType(java.lang.reflect.Type jdkType) { |
283 |
| - // 06-Sep-2020, tatu: Careful wrt [databind#2846][databind#2821], |
284 |
| - // call new method added in 2.12 |
285 |
| - return _config.getTypeFactory().resolveMemberType(jdkType, _type.getBindings()); |
286 |
| - } |
287 |
| - |
288 | 273 | @Override
|
289 | 274 | public AnnotatedConstructor findDefaultConstructor() {
|
290 | 275 | return _classInfo.getDefaultConstructor();
|
@@ -521,21 +506,6 @@ public List<BeanPropertyDefinition> findBackReferences()
|
521 | 506 | return result;
|
522 | 507 | }
|
523 | 508 |
|
524 |
| - @Deprecated // since 2.9 |
525 |
| - @Override |
526 |
| - public Map<String,AnnotatedMember> findBackReferenceProperties() |
527 |
| - { |
528 |
| - List<BeanPropertyDefinition> props = findBackReferences(); |
529 |
| - if (props == null) { |
530 |
| - return null; |
531 |
| - } |
532 |
| - Map<String,AnnotatedMember> result = new HashMap<>(); |
533 |
| - for (BeanPropertyDefinition prop : props) { |
534 |
| - result.put(prop.getName(), prop.getMutator()); |
535 |
| - } |
536 |
| - return result; |
537 |
| - } |
538 |
| - |
539 | 509 | /*
|
540 | 510 | /**********************************************************
|
541 | 511 | /* Introspection for deserialization, factories
|
@@ -589,45 +559,6 @@ public List<AnnotatedAndMetadata<AnnotatedMethod, JsonCreator.Mode>> getFactoryM
|
589 | 559 | return result;
|
590 | 560 | }
|
591 | 561 |
|
592 |
| - @Override |
593 |
| - @Deprecated // since 2.13 |
594 |
| - public Constructor<?> findSingleArgConstructor(Class<?>... argTypes) |
595 |
| - { |
596 |
| - for (AnnotatedConstructor ac : _classInfo.getConstructors()) { |
597 |
| - // This list is already filtered to only include accessible |
598 |
| - if (ac.getParameterCount() == 1) { |
599 |
| - Class<?> actArg = ac.getRawParameterType(0); |
600 |
| - for (Class<?> expArg : argTypes) { |
601 |
| - if (expArg == actArg) { |
602 |
| - return ac.getAnnotated(); |
603 |
| - } |
604 |
| - } |
605 |
| - } |
606 |
| - } |
607 |
| - return null; |
608 |
| - } |
609 |
| - |
610 |
| - @Override |
611 |
| - @Deprecated // since 2.13 |
612 |
| - public Method findFactoryMethod(Class<?>... expArgTypes) |
613 |
| - { |
614 |
| - // So, of all single-arg static methods: |
615 |
| - for (AnnotatedMethod am : _classInfo.getFactoryMethods()) { |
616 |
| - // 24-Oct-2016, tatu: Better ensure it only takes 1 arg, no matter what |
617 |
| - if (isFactoryMethod(am) && am.getParameterCount() == 1) { |
618 |
| - // And must take one of expected arg types (or supertype) |
619 |
| - Class<?> actualArgType = am.getRawParameterType(0); |
620 |
| - for (Class<?> expArgType : expArgTypes) { |
621 |
| - // And one that matches what we would pass in |
622 |
| - if (actualArgType.isAssignableFrom(expArgType)) { |
623 |
| - return am.getAnnotated(); |
624 |
| - } |
625 |
| - } |
626 |
| - } |
627 |
| - } |
628 |
| - return null; |
629 |
| - } |
630 |
| - |
631 | 562 | protected boolean isFactoryMethod(AnnotatedMethod am)
|
632 | 563 | {
|
633 | 564 | // First: return type must be compatible with the introspected class
|
|
0 commit comments