Author: sebb
Date: Sat Apr 18 12:36:01 2009
New Revision: 766312
URL: http://svn.apache.org/viewvc?rev=766312&view=rev
Log:
Javadoc
Remove unused public method
Modified:
jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContext.java
Modified:
jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContext.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContext.java?rev=766312&r1=766311&r2=766312&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContext.java
(original)
+++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContext.java
Sat Apr 18 12:36:01 2009
@@ -25,6 +25,8 @@
/**
* Holds context for a thread.
* Generated by JMeterContextService.
+ *
+ * @NotThreadSafe // Only intended for use within a thread
*/
public class JMeterContext {
private JMeterVariables variables;
@@ -48,13 +50,14 @@
private byte[] readBuffer = null;
JMeterContext() {
- variables = null;
- previousResult = null;
- currentSampler = null;
- samplingStarted = false;
+ clear0();
}
public void clear() {
+ clear0();
+ }
+
+ private void clear0() {
variables = null;
previousResult = null;
currentSampler = null;
@@ -102,7 +105,7 @@
}
public void setCurrentSampler(Sampler sampler) {
- setPreviousSampler(currentSampler);
+ this.previousSampler = currentSampler;
this.currentSampler = sampler;
}
@@ -116,16 +119,6 @@
}
/**
- * Sets the previousSampler.
- *
- * @param previousSampler
- * the previousSampler to set
- */
- public void setPreviousSampler(Sampler previousSampler) {
- this.previousSampler = previousSampler;
- }
-
- /**
* Returns the threadNum.
*
* @return int
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]