sebb 2004/10/23 12:41:08
Modified: src/protocol/http/org/apache/jmeter/protocol/http/control
Tag: rel-2_0 Cookie.java
Log:
setXXX is synchronized, make getXXX synch as well
Revision Changes Path
No revision
No revision
1.10.2.1 +6 -6
jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/control/Cookie.java
Index: Cookie.java
===================================================================
RCS file:
/home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/control/Cookie.java,v
retrieving revision 1.10
retrieving revision 1.10.2.1
diff -u -r1.10 -r1.10.2.1
--- Cookie.java 12 Feb 2004 00:07:12 -0000 1.10
+++ Cookie.java 23 Oct 2004 19:41:08 -0000 1.10.2.1
@@ -88,7 +88,7 @@
/**
* get the value for this object.
*/
- public String getValue() //TODO should this be synchronized - the set() method
is
+ public synchronized String getValue()
{
return getPropertyAsString(VALUE);
}
@@ -104,7 +104,7 @@
/**
* get the domain for this object.
*/
- public String getDomain() //TODO should this be synchronized - the set() method
is
+ public synchronized String getDomain()
{
return getPropertyAsString(DOMAIN);
}
@@ -120,7 +120,7 @@
/**
* get the expires for this object.
*/
- public long getExpires() //TODO should this be synchronized - the set() method
is
+ public synchronized long getExpires()
{
return getPropertyAsLong(EXPIRES);
}
@@ -136,7 +136,7 @@
/**
* get the secure for this object.
*/
- public boolean getSecure() //TODO should this be synchronized - the set()
method is
+ public synchronized boolean getSecure()
{
return getPropertyAsBoolean(SECURE);
}
@@ -152,7 +152,7 @@
/**
* get the path for this object.
*/
- public String getPath() //TODO should this be synchronized - the set() method is
+ public synchronized String getPath()
{
return getPropertyAsString(PATH);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]