AbstractExceptionContextTest#testJavaSerialization: remove unnecessary SuppressWarnings annotation

This commit is contained in:
pascalschumacher 2017-03-12 13:10:34 +01:00
parent 05bf337fc0
commit f0f896ee60
1 changed files with 2 additions and 2 deletions

View File

@ -180,8 +180,8 @@ public abstract class AbstractExceptionContextTest<T extends ExceptionContext &
public void testJavaSerialization() {
exceptionContext.setContextValue("test Poorly written obj", "serializable replacement");
@SuppressWarnings("unchecked")
final T clone = SerializationUtils.deserialize(SerializationUtils.serialize(exceptionContext));
assertEquals(exceptionContext.getFormattedExceptionMessage(null), clone.getFormattedExceptionMessage(null));
}
}