Skip to content

Commit 6e57ea1

Browse files
committed
javadoc improvements for #1222
1 parent 3266d8d commit 6e57ea1

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/main/java/com/fasterxml/jackson/databind/type/TypeFactory.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -796,12 +796,17 @@ public JavaType constructReferenceType(Class<?> rawType, JavaType referredType)
796796
}
797797

798798
/**
799-
* Method that will force construction of a simple type, without trying to
800-
* check for more specialized types.
799+
* Method that use by core Databind functionality, and that should NOT be called
800+
* by application code outside databind package.
801801
*<p>
802-
* NOTE: no type modifiers are called on type either, so calling this method
803-
* should only be used if caller really knows what it's doing...
802+
* Unchecked here not only means that no checks are made as to whether given class
803+
* might be non-simple type (like {@link CollectionType}) but also that most of supertype
804+
* information is not gathered. This means that unless called on primitive types or
805+
* {@link java.lang.String}, results are probably not what you want to use.
806+
*
807+
* @deprecated Since 2.8, to indicate users should never call this method.
804808
*/
809+
@Deprecated // since 2.8
805810
public JavaType uncheckedSimpleType(Class<?> cls) {
806811
// 18-Oct-2015, tatu: Not sure how much problem missing super-type info is here
807812
return _constructSimple(cls, EMPTY_BINDINGS, null, null);

0 commit comments

Comments
 (0)