Author: sebb
Date: Fri Apr 24 22:32:40 2009
New Revision: 768430
URL: http://svn.apache.org/viewvc?rev=768430&view=rev
Log:
Unused ctor
No point having some synch. methods in a non-thread-safe class
Modified:
jakarta/jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java
Modified:
jakarta/jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java?rev=768430&r1=768429&r2=768430&view=diff
==============================================================================
---
jakarta/jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java
(original)
+++
jakarta/jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java
Fri Apr 24 22:32:40 2009
@@ -58,10 +58,6 @@
private final int index;
- private RunningSample() {// Don't (can't) use this...
- this("", 0);
- }
-
/**
* Use this constructor to create the initial instance
*/
@@ -103,7 +99,7 @@
* Clear the counters (useful for differential stats)
*
*/
- public synchronized void clear() {
+ public void clear() {
init();
}
@@ -205,7 +201,7 @@
* Records a sample.
*
*/
- public synchronized void addSample(SampleResult res) {
+ public void addSample(SampleResult res) {
long aTimeInMillis = res.getTime();
boolean aSuccessFlag = res.isSuccessful();
@@ -238,10 +234,10 @@
}
/**
- * Adds another RunningSample to this one Does not check if it has the same
- * label and index
+ * Adds another RunningSample to this one.
+ * Does not check if it has the same label and index.
*/
- public synchronized void addSample(RunningSample rs) {
+ public void addSample(RunningSample rs) {
this.counter += rs.counter;
this.errorCount += rs.errorCount;
this.runningSum += rs.runningSum;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]