jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1720214 - /jmeter/trunk/src/core/org/apache/jmeter/assertions/CompareAssertionResult.java
Date Tue, 15 Dec 2015 18:14:24 GMT
Author: fschumacher
Date: Tue Dec 15 18:14:23 2015
New Revision: 1720214

URL: http://svn.apache.org/viewvc?rev=1720214&view=rev
Log:
The combination of transient and final makes no sense. So make ResultHolder extend
Serializable and remove the transient declaration.

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/assertions/CompareAssertionResult.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/assertions/CompareAssertionResult.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/assertions/CompareAssertionResult.java?rev=1720214&r1=1720213&r2=1720214&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/assertions/CompareAssertionResult.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/assertions/CompareAssertionResult.java Tue Dec
15 18:14:23 2015
@@ -18,11 +18,12 @@
 
 package org.apache.jmeter.assertions;
 
+import java.io.Serializable;
 
 public class CompareAssertionResult extends AssertionResult {
     private static final long serialVersionUID = 1;
 
-    private transient final ResultHolder comparedResults = new ResultHolder();
+    private final ResultHolder comparedResults = new ResultHolder();
 
     /**
      * For testing only
@@ -57,8 +58,9 @@ public class CompareAssertionResult exte
         return comparedResults.secondaryResult;
     }
 
-    private static class ResultHolder
+    private static class ResultHolder implements Serializable
     {
+        private static final long serialVersionUID = 1L;
         private String baseResult;
         private String secondaryResult;
 



Mime
View raw message