@Override public Predicate<?> doDeserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) { checkArgument(json.isJsonPrimitive()); try { final Predicate<?> obj = (Predicate<?>) deserializeObject(json.getAsString()); return obj; } catch (final IOException e) { throw new IllegalArgumentException(e); } catch (final ClassNotFoundException e) { throw new IllegalArgumentException(e); } }
@Override public Predicate<?> doDeserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) { checkArgument(json.isJsonPrimitive()); try { final Predicate<?> obj = (Predicate<?>) deserializeObject(json.getAsString()); return obj; } catch (final IOException e) { throw new IllegalArgumentException(e); } catch (final ClassNotFoundException e) { throw new IllegalArgumentException(e); } }