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

@ -179,9 +179,9 @@ public abstract class AbstractExceptionContextTest<T extends ExceptionContext &
@Test
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));
}
}