Author: sebb
Date: Mon Sep  7 21:30:11 2009
New Revision: 812283

URL: http://svn.apache.org/viewvc?rev=812283&view=rev
Log:
Remove unused setter, and make name final

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

Modified: 
jakarta/jmeter/trunk/src/core/org/apache/jmeter/assertions/AssertionResult.java
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/assertions/AssertionResult.java?rev=812283&r1=812282&r2=812283&view=diff
==============================================================================
--- 
jakarta/jmeter/trunk/src/core/org/apache/jmeter/assertions/AssertionResult.java 
(original)
+++ 
jakarta/jmeter/trunk/src/core/org/apache/jmeter/assertions/AssertionResult.java 
Mon Sep  7 21:30:11 2009
@@ -27,7 +27,7 @@
     public static final String RESPONSE_WAS_NULL = "Response was null"; // 
$NON-NLS-1$
 
     /** Name of the assertion. */
-    private String name;
+    private final String name;
 
     /** True if the assertion failed. */
     private boolean failure;
@@ -45,6 +45,7 @@
      */
     @Deprecated
     public AssertionResult() { // Needs to be public for tests
+        this.name = null;
     }
 
     /**
@@ -54,7 +55,7 @@
      * @param name the name of the assertion
      */
     public AssertionResult(String name) {
-        setName(name);
+        this.name = name;
     }
 
     /**
@@ -67,15 +68,6 @@
     }
 
     /**
-     * Set the name of the assertion
-     *
-     * @param name the name of the assertion
-     */
-    public void setName(String name) {
-        this.name = name;
-    }
-
-    /**
      * Check if the assertion failed. If it failed, the failure message may 
give
      * more details about the failure.
      *



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org

Reply via email to