Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.clustermate.json;
 
 
 
    public KeySpaceDeserializer() { super(KeySpace.class); }
    @Override
            throws IOExceptionJsonProcessingException
    {
        switch (jp.getCurrentToken()) {
        case :
            int i = jp.getValueAsInt(-1);
            if (i > 0) {
                return new KeySpace(jp.getValueAsInt());
            }
            break;
        case :
            return new KeySpace(jp.getIntValue());
        default:
        }
        throw ctxt.mappingException(getValueClass(), jp.getCurrentToken());
    }
New to GrepCode? Check out our FAQ X