jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1380050 - in /jmeter/trunk/src/core/org/apache/jmeter/threads: FindTestElementsUpToRootTraverser.java JMeterThread.java
Date Sun, 02 Sep 2012 20:37:38 GMT
Author: pmouawad
Date: Sun Sep  2 20:37:37 2012
New Revision: 1380050

URL: http://svn.apache.org/viewvc?rev=1380050&view=rev
Log:
make fields final

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/threads/FindTestElementsUpToRootTraverser.java
    jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/threads/FindTestElementsUpToRootTraverser.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/threads/FindTestElementsUpToRootTraverser.java?rev=1380050&r1=1380049&r2=1380050&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/threads/FindTestElementsUpToRootTraverser.java
(original)
+++ jmeter/trunk/src/core/org/apache/jmeter/threads/FindTestElementsUpToRootTraverser.java
Sun Sep  2 20:37:37 2012
@@ -41,7 +41,7 @@ public class FindTestElementsUpToRootTra
     /**
      * Node to find in TestTree
      */
-    private Object nodeToFind;
+    private final Object nodeToFind;
     /**
      * Once we find the node in the Tree we stop recording nodes
      */

Modified: jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java?rev=1380050&r1=1380049&r2=1380050&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java Sun Sep  2 20:37:37
2012
@@ -578,7 +578,7 @@ public class JMeterThread implements Run
     // N.B. This is only called at the start and end of a thread, so there is not
     // necessary to cache the search results, thus saving memory
     private static class ThreadListenerTraverser implements HashTreeTraverser {
-        private boolean isStart = false;
+        private final boolean isStart;
 
         private ThreadListenerTraverser(boolean start) {
             isStart = start;



Mime
View raw message