Added the cause to Assertions

This commit is contained in:
Inderjeet Singh 2015-11-16 09:16:23 -08:00
parent 05b17f9271
commit c935f89b23
2 changed files with 2 additions and 2 deletions

View File

@ -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);
} }
} }

View File

@ -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();
} }