Skip to content

Commit 6e5fb71

Browse files
committed
Merge branch '2.19' into 2.x
2 parents eb3f592 + 4bb1b51 commit 6e5fb71

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,19 +1503,25 @@ public ObjectMapper setSerializerProvider(DefaultSerializerProvider p) {
15031503
}
15041504

15051505
/**
1506-
* Accessor for the "blueprint" (or, factory) instance, from which instances
1507-
* are created by calling {@link DefaultSerializerProvider#createInstance}.
1508-
* Note that returned instance cannot be directly used as it is not properly
1509-
* configured: to get a properly configured instance to call, use
1510-
* {@link #getSerializerProviderInstance()} instead.
1506+
* Internal {@link SerializerProvider} accessor used by databind package to get the "blueprint"
1507+
* (or, factory) instance, from which actual instances are created by calling {@link DefaultSerializerProvider#createInstance}.
1508+
* <b>NOT TO BE USED BY APPLICATION CODE</b> directly: only databind-managed {@code SerializerProvider}
1509+
* instances should be used.
1510+
*<p>
1511+
* Implementation note: returned instance cannot be directly used as it is not properly
1512+
* configured or initialized.
15111513
*/
15121514
public SerializerProvider getSerializerProvider() {
15131515
return _serializerProvider;
15141516
}
15151517

15161518
/**
1517-
* Accessor for constructing and returning a {@link SerializerProvider}
1518-
* instance that may be used for accessing serializers. This is same as
1519+
* Internal {@link SerializerProvider} accessor used by databind package to get a
1520+
* properly initialized instance to pass to various handlers.
1521+
* <b>NOT TO BE USED BY APPLICATION CODE</b> directly: only databind-managed {@code SerializerProvider}
1522+
* instances should be used.
1523+
*<p>
1524+
* Implementation note: this is same as
15191525
* calling {@link #getSerializerProvider}, and calling {@code createInstance()}
15201526
* on it.
15211527
*

0 commit comments

Comments
 (0)