You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by pa...@apache.org on 2017/03/12 12:10:40 UTC

[lang] AbstractExceptionContextTest#testJavaSerialization: remove unnecessary SuppressWarnings annotation

Repository: commons-lang
Updated Branches:
  refs/heads/master 05bf337fc -> f0f896ee6


AbstractExceptionContextTest#testJavaSerialization: remove unnecessary SuppressWarnings annotation


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/f0f896ee
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/f0f896ee
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/f0f896ee

Branch: refs/heads/master
Commit: f0f896ee600ea7ff66c083747f370453b914be48
Parents: 05bf337
Author: pascalschumacher <pa...@gmx.net>
Authored: Sun Mar 12 13:10:34 2017 +0100
Committer: pascalschumacher <pa...@gmx.net>
Committed: Sun Mar 12 13:10:34 2017 +0100

----------------------------------------------------------------------
 .../commons/lang3/exception/AbstractExceptionContextTest.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/f0f896ee/src/test/java/org/apache/commons/lang3/exception/AbstractExceptionContextTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/lang3/exception/AbstractExceptionContextTest.java b/src/test/java/org/apache/commons/lang3/exception/AbstractExceptionContextTest.java
index 462c4cc..e569ade 100644
--- a/src/test/java/org/apache/commons/lang3/exception/AbstractExceptionContextTest.java
+++ b/src/test/java/org/apache/commons/lang3/exception/AbstractExceptionContextTest.java
@@ -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));
     }
 }