mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 07:59:21 +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() {
|
||||
@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);
|
||||
|
Reference in New Issue
Block a user