commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject [lang] AbstractExceptionContextTest#testJavaSerialization: remove unnecessary SuppressWarnings annotation
Date Sun, 12 Mar 2017 12:10:40 GMT
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 <pascalschumacher@gmx.net>
Authored: Sun Mar 12 13:10:34 2017 +0100
Committer: pascalschumacher <pascalschumacher@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));
     }
 }


Mime
View raw message