Skip to content

Commit 1fd48f5

Browse files
committed
Merge branch '2.19'
2 parents 84ad77a + 0edc2eb commit 1fd48f5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/tools/jackson/databind/type/TypeFactory.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ public ClassLoader getClassLoader() {
277277
* <code>java.lang.Object</code>.
278278
*/
279279
public static JavaType unknownType() {
280-
return defaultInstance()._unknownType();
280+
// 11-Oct-2024, tatu: Used to call via "defaultInstance()" pre-2.19 but
281+
// since we have static object to refer, just return directly
282+
return CORE_TYPE_OBJECT;
281283
}
282284

283285
/**
@@ -1210,6 +1212,10 @@ protected JavaType _newSimpleType(Class<?> raw, TypeBindings bindings,
12101212
return new SimpleType(raw, bindings, superClass, superInterfaces);
12111213
}
12121214

1215+
/**
1216+
* @deprecated Since 2.19
1217+
*/
1218+
@Deprecated // since 2.19
12131219
protected JavaType _unknownType() {
12141220
return CORE_TYPE_OBJECT;
12151221
}

0 commit comments

Comments
 (0)