Skip to content

Commit ebbfb76

Browse files
committed
...
1 parent cee73b4 commit ebbfb76

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,14 +477,13 @@ public <M extends ObjectMapper, B extends MapperBuilder<M,B>> MapperBuilder<M,B>
477477
// easier, and we go with that.
478478
// But note that return direction has to be supported, then, by that state object
479479
// and NOT anything in here.
480-
481480
Object writeReplace() {
482481
return _savedBuilderState;
483482
}
484483

485484
// Just as a sanity check verify there is no attempt at directly instantiating mapper here
486485
Object readResolve() {
487-
throw new IllegalStateException("Should never deserialize `ObjectMapper` directly");
486+
throw new IllegalStateException("Should never deserialize `"+getClass().getName()+"` directly");
488487
}
489488

490489
/*

0 commit comments

Comments
 (0)