Author: luc
Date: Wed Mar 23 14:18:42 2011
New Revision: 1084595

URL: http://svn.apache.org/viewvc?rev=1084595&view=rev
Log:
removed unused field

Modified:
    
commons/proper/math/trunk/src/test/java/org/apache/commons/math/exception/MathRuntimeExceptionTest.java

Modified: 
commons/proper/math/trunk/src/test/java/org/apache/commons/math/exception/MathRuntimeExceptionTest.java
URL: 
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/exception/MathRuntimeExceptionTest.java?rev=1084595&r1=1084594&r2=1084595&view=diff
==============================================================================
--- 
commons/proper/math/trunk/src/test/java/org/apache/commons/math/exception/MathRuntimeExceptionTest.java
 (original)
+++ 
commons/proper/math/trunk/src/test/java/org/apache/commons/math/exception/MathRuntimeExceptionTest.java
 Wed Mar 23 14:18:42 2011
@@ -114,9 +114,9 @@ public class MathRuntimeExceptionTest {
     public void testSerializeUnserializable() {
         final MathRuntimeException mreOut = new MathRuntimeException();
         mreOut.addMessage(LocalizedFormats.SIMPLE_MESSAGE, "OK");
-        mreOut.addMessage(LocalizedFormats.SIMPLE_MESSAGE, new 
Unserializable(0));
+        mreOut.addMessage(LocalizedFormats.SIMPLE_MESSAGE, new 
Unserializable());
         String key = "Key 1";
-        mreOut.setContext(key, new Unserializable(1));
+        mreOut.setContext(key, new Unserializable());
 
         try {
             ByteArrayOutputStream bos = new ByteArrayOutputStream();
@@ -138,10 +138,7 @@ public class MathRuntimeExceptionTest {
      * Class used by {@link #testSerializeUnserializable()}.
      */
     private static class Unserializable {
-        private int k;
-
-        Unserializable(int k) {
-            this.k = k;
+        Unserializable() {
         }
     }
 }


Reply via email to