mirror of
https://github.com/fankes/moshi.git
synced 2025-10-20 08:29:22 +08:00
Clarify negation in condition. (#444)
This commit is contained in:
committed by
Jesse Wilson
parent
3b89cf1fcb
commit
aede26d5e1
@@ -47,7 +47,7 @@ final class ClassJsonAdapter<T> extends JsonAdapter<T> {
|
|||||||
public static final JsonAdapter.Factory FACTORY = new JsonAdapter.Factory() {
|
public static final JsonAdapter.Factory FACTORY = new JsonAdapter.Factory() {
|
||||||
@Override public @Nullable JsonAdapter<?> create(
|
@Override public @Nullable JsonAdapter<?> create(
|
||||||
Type type, Set<? extends Annotation> annotations, Moshi moshi) {
|
Type type, Set<? extends Annotation> annotations, Moshi moshi) {
|
||||||
if (!(type instanceof Class || type instanceof ParameterizedType)) {
|
if (!(type instanceof Class) && !(type instanceof ParameterizedType)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
Class<?> rawType = Types.getRawType(type);
|
Class<?> rawType = Types.getRawType(type);
|
||||||
|
Reference in New Issue
Block a user