Skip to content

Commit 539f7dc

Browse files
committed
Remove deprecated internal methods
1 parent 5a1d8b8 commit 539f7dc

File tree

2 files changed

+1
-59
lines changed

2 files changed

+1
-59
lines changed

src/main/java/com/fasterxml/jackson/databind/introspect/AnnotatedClass.java

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import com.fasterxml.jackson.databind.AnnotationIntrospector;
88
import com.fasterxml.jackson.databind.JavaType;
9-
import com.fasterxml.jackson.databind.cfg.MapperConfig;
109
import com.fasterxml.jackson.databind.introspect.ClassIntrospector.MixInResolver;
1110
import com.fasterxml.jackson.databind.type.TypeBindings;
1211
import com.fasterxml.jackson.databind.type.TypeFactory;
@@ -152,15 +151,6 @@ public final class AnnotatedClass
152151
_collectAnnotations = collectAnnotations;
153152
}
154153

155-
@Deprecated // since 2.10
156-
AnnotatedClass(JavaType type, Class<?> rawType, List<JavaType> superTypes,
157-
Class<?> primaryMixIn, Annotations classAnnotations, TypeBindings bindings,
158-
AnnotationIntrospector aintr, MixInResolver mir, TypeFactory tf)
159-
{
160-
this(type, rawType, superTypes, primaryMixIn, classAnnotations, bindings,
161-
aintr, mir, tf, true);
162-
}
163-
164154
/**
165155
* Constructor (only) used for creating primordial simple types (during bootstrapping)
166156
* and array type placeholders where no fields or methods are needed.
@@ -180,46 +170,6 @@ public final class AnnotatedClass
180170
_collectAnnotations = false;
181171
}
182172

183-
/**
184-
* @deprecated Since 2.9, use methods in {@link AnnotatedClassResolver} instead.
185-
*/
186-
@Deprecated
187-
public static AnnotatedClass construct(JavaType type, MapperConfig<?> config) {
188-
return construct(type, config, (MixInResolver) config);
189-
}
190-
191-
/**
192-
* @deprecated Since 2.9, use methods in {@link AnnotatedClassResolver} instead.
193-
*/
194-
@Deprecated
195-
public static AnnotatedClass construct(JavaType type, MapperConfig<?> config,
196-
MixInResolver mir)
197-
{
198-
return AnnotatedClassResolver.resolve(config, type, mir);
199-
}
200-
201-
/**
202-
* Method similar to {@link #construct}, but that will NOT include
203-
* information from supertypes; only class itself and any direct
204-
* mix-ins it may have.
205-
*
206-
* @deprecated Since 2.9, use methods in {@link AnnotatedClassResolver} instead.
207-
*/
208-
@Deprecated
209-
public static AnnotatedClass constructWithoutSuperTypes(Class<?> raw, MapperConfig<?> config) {
210-
return constructWithoutSuperTypes(raw, config, config);
211-
}
212-
213-
/**
214-
* @deprecated Since 2.9, use methods in {@link AnnotatedClassResolver} instead.
215-
*/
216-
@Deprecated
217-
public static AnnotatedClass constructWithoutSuperTypes(Class<?> raw, MapperConfig<?> config,
218-
MixInResolver mir)
219-
{
220-
return AnnotatedClassResolver.resolveWithoutSuperTypes(config, raw, mir);
221-
}
222-
223173
/*
224174
/**********************************************************
225175
/* TypeResolutionContext implementation
@@ -314,14 +264,6 @@ public List<AnnotatedMethod> getFactoryMethods() {
314264
return _creators().creatorMethods;
315265
}
316266

317-
/**
318-
* @deprecated Since 2.9; use {@link #getFactoryMethods} instead.
319-
*/
320-
@Deprecated
321-
public List<AnnotatedMethod> getStaticMethods() {
322-
return getFactoryMethods();
323-
}
324-
325267
public Iterable<AnnotatedMethod> memberMethods() {
326268
return _methods();
327269
}

src/main/java/com/fasterxml/jackson/databind/introspect/AnnotatedClassResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static AnnotatedClass createArrayType(MapperConfig<?> config, Class<?> raw) {
132132
}
133133

134134
AnnotatedClass resolveFully() {
135-
List<JavaType> superTypes = new ArrayList<JavaType>(8);
135+
List<JavaType> superTypes = new ArrayList<>(8);
136136
if (!_type.hasRawClass(Object.class)) {
137137
if (_type.isInterface()) {
138138
_addSuperInterfaces(_type, superTypes, false);

0 commit comments

Comments
 (0)