Added the cause to Assertions
This commit is contained in:
parent
05b17f9271
commit
c935f89b23
|
@ -62,7 +62,7 @@ public final class Excluder implements TypeAdapterFactory, Cloneable {
|
||||||
try {
|
try {
|
||||||
return (Excluder) super.clone();
|
return (Excluder) super.clone();
|
||||||
} catch (CloneNotSupportedException e) {
|
} catch (CloneNotSupportedException e) {
|
||||||
throw new AssertionError();
|
throw new AssertionError(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -241,7 +241,7 @@ public final class ReflectiveTypeAdapterFactory implements TypeAdapterFactory {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (IllegalAccessException e) {
|
} catch (IllegalAccessException e) {
|
||||||
throw new AssertionError();
|
throw new AssertionError(e);
|
||||||
}
|
}
|
||||||
out.endObject();
|
out.endObject();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user