Clarify negation in condition. (#444)

This commit is contained in:
Eric Cochran
2018-02-18 03:56:29 -08:00
committed by Jesse Wilson
parent 3b89cf1fcb
commit aede26d5e1

View File

@@ -47,7 +47,7 @@ final class ClassJsonAdapter<T> extends JsonAdapter<T> {
public static final JsonAdapter.Factory FACTORY = new JsonAdapter.Factory() {
@Override public @Nullable JsonAdapter<?> create(
Type type, Set<? extends Annotation> annotations, Moshi moshi) {
if (!(type instanceof Class || type instanceof ParameterizedType)) {
if (!(type instanceof Class) && !(type instanceof ParameterizedType)) {
return null;
}
Class<?> rawType = Types.getRawType(type);