Skip to content

Commit 89c1180

Browse files
committed
Post-#3072 fix to keep backwards-compatibility wrt Guice/OSGi injector modules
1 parent f15b71d commit 89c1180

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ public abstract class InjectableValues
2626
* @param optional Flag used for configuring the behavior when the value
2727
* to inject is not found
2828
*/
29-
public abstract Object findInjectableValue(Object valueId, DeserializationContext ctxt,
30-
BeanProperty forProperty, Object beanInstance, Boolean optional) throws JsonMappingException;
29+
public Object findInjectableValue(Object valueId, DeserializationContext ctxt,
30+
BeanProperty forProperty, Object beanInstance, Boolean optional) throws JsonMappingException
31+
{
32+
// For backwards-compatibility, must delegate to old method
33+
return findInjectableValue(valueId, ctxt, forProperty, beanInstance);
34+
}
3135

3236
/**
3337
* @deprecated in 2.20

0 commit comments

Comments
 (0)