Code example for InvalidClassException

0
    private Object
    readResolve() throws InvalidClassException { 
        try { 
            return declarer.getField(name);
        } catch (final NoSuchFieldException e) {
            throw new InvalidClassException(declarer.getName() + "#" + name);
        } 
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java