Java Code Examples for com.fasterxml.jackson.databind.util.ClassUtil#rawClass()

The following examples show how to use com.fasterxml.jackson.databind.util.ClassUtil#rawClass() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ObjectReader.java    From lams with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @since 2.9
 */
protected final void _verifyNoTrailingTokens(JsonParser p, DeserializationContext ctxt,
        JavaType bindType)
    throws IOException
{
    JsonToken t = p.nextToken();
    if (t != null) {
        Class<?> bt = ClassUtil.rawClass(bindType);
        if (bt == null) {
            if (_valueToUpdate != null) {
                bt = _valueToUpdate.getClass();
            }
        }
        ctxt.reportTrailingTokens(bt, p, t);
    }
}
 
Example 2
Source File: ObjectMapper.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @since 2.9
 */
protected final void _verifyNoTrailingTokens(JsonParser p, DeserializationContext ctxt,
        JavaType bindType)
    throws IOException
{
    JsonToken t = p.nextToken();
    if (t != null) {
        Class<?> bt = ClassUtil.rawClass(bindType);
        ctxt.reportTrailingTokens(bt, p, t);
    }
}
 
Example 3
Source File: TypeDeserializerBase.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override    
public Class<?> getDefaultImpl() {
    return ClassUtil.rawClass(_defaultImpl);
}
 
Example 4
Source File: MismatchedInputException.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
protected MismatchedInputException(JsonParser p, String msg, JavaType targetType) {
    super(p, msg);
    _targetType = ClassUtil.rawClass(targetType);
}