Skip to content

Commit 2a5d022

Browse files
committed
Fix #2082
1 parent d3a715a commit 2a5d022

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

release-notes/VERSION-2.x

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Project: jackson-databind
99
#2060: `UnwrappingBeanPropertyWriter` incorrectly assumes the found serializer is
1010
of type `UnwrappingBeanSerializer`
1111
(reported by Petar T)
12+
#2082: `FactoryBasedEnumDeserializer` should be cachable
1213

1314
2.9.6 (12-Jun-2018)
1415

src/main/java/com/fasterxml/jackson/databind/deser/std/FactoryBasedEnumDeserializer.java

+4
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ public Boolean supportsUpdate(DeserializationConfig config) {
9999
return Boolean.FALSE;
100100
}
101101

102+
// since 2.9.7: should have been the case earlier but
103+
@Override
104+
public boolean isCachable() { return true; }
105+
102106
@Override
103107
public Object deserialize(JsonParser p, DeserializationContext ctxt) throws IOException
104108
{

0 commit comments

Comments
 (0)