Merge pull request #886 from metamx/smileFix

Allow Smile to fall back to text
This commit is contained in:
xvrl 2014-11-18 15:55:21 -08:00
commit 034347ffe9

View File

@ -48,7 +48,9 @@ public class JacksonModule implements Module
@Provides @LazySingleton @Smile @Provides @LazySingleton @Smile
public ObjectMapper smileMapper() public ObjectMapper smileMapper()
{ {
ObjectMapper retVal = new DefaultObjectMapper(new SmileFactory()); final SmileFactory smileFactory = new SmileFactory();
smileFactory.delegateToTextual(true);
final ObjectMapper retVal = new DefaultObjectMapper(smileFactory);
retVal.getFactory().setCodec(retVal); retVal.getFactory().setCodec(retVal);
return retVal; return retVal;
} }