Skip to content

Commit b0ca5ed

Browse files
authored
Propose that JsonPointer be Serializable
Noting that `Instances [of JsonPointer] are fully immutable and can be cached, shared between threads` it would be nice to be able to pass these between workers that require object serialization to pass instances around.
1 parent 2dee63a commit b0ca5ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/fasterxml/jackson/core/JsonPointer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
*
1818
* @since 2.3
1919
*/
20-
public class JsonPointer
20+
public class JsonPointer extends Serializable
2121
{
22+
private static final long serialVersionUID = 1L;
2223
/**
2324
* Character used to separate segments.
2425
*

0 commit comments

Comments
 (0)