You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2011/12/29 19:26:40 UTC
svn commit: r1225613 -
/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/Cookie.java
Author: pmouawad
Date: Thu Dec 29 18:26:39 2011
New Revision: 1225613
URL: http://svn.apache.org/viewvc?rev=1225613&view=rev
Log:
Removed useless synchronized
Modified:
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/Cookie.java
Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/Cookie.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/Cookie.java?rev=1225613&r1=1225612&r2=1225613&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/Cookie.java (original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/Cookie.java Thu Dec 29 18:26:39 2011
@@ -115,28 +115,28 @@ public class Cookie extends AbstractTest
/**
* get the value for this object.
*/
- public synchronized String getValue() {
+ public String getValue() {
return getPropertyAsString(VALUE);
}
/**
* set the value for this object.
*/
- public synchronized void setValue(String value) {
+ public void setValue(String value) {
this.setProperty(VALUE, value);
}
/**
* get the domain for this object.
*/
- public synchronized String getDomain() {
+ public String getDomain() {
return getPropertyAsString(DOMAIN);
}
/**
* set the domain for this object.
*/
- public synchronized void setDomain(String domain) {
+ public void setDomain(String domain) {
setProperty(DOMAIN, domain);
}
@@ -145,7 +145,7 @@ public class Cookie extends AbstractTest
*
* @return Expiry time in seconds since the Java epoch
*/
- public synchronized long getExpires() {
+ public long getExpires() {
return getPropertyAsLong(EXPIRES);
}
@@ -155,7 +155,7 @@ public class Cookie extends AbstractTest
* @return Expiry time in milli-seconds since the Java epoch,
* i.e. same as System.currentTimeMillis()
*/
- public synchronized long getExpiresMillis() {
+ public long getExpiresMillis() {
return getPropertyAsLong(EXPIRES)*1000;
}
@@ -163,35 +163,35 @@ public class Cookie extends AbstractTest
* set the expiry time for the cookie
* @param expires - expiry time in seconds since the Java epoch
*/
- public synchronized void setExpires(long expires) {
+ public void setExpires(long expires) {
setProperty(new LongProperty(EXPIRES, expires));
}
/**
* get the secure for this object.
*/
- public synchronized boolean getSecure() {
+ public boolean getSecure() {
return getPropertyAsBoolean(SECURE);
}
/**
* set the secure for this object.
*/
- public synchronized void setSecure(boolean secure) {
+ public void setSecure(boolean secure) {
setProperty(new BooleanProperty(SECURE, secure));
}
/**
* get the path for this object.
*/
- public synchronized String getPath() {
+ public String getPath() {
return getPropertyAsString(PATH);
}
/**
* set the path for this object.
*/
- public synchronized void setPath(String path) {
+ public void setPath(String path) {
setProperty(PATH, path);
}
@@ -232,14 +232,14 @@ public class Cookie extends AbstractTest
/**
* @return the version
*/
- public synchronized int getVersion() {
+ public int getVersion() {
return getPropertyAsInt(VERSION, DEFAULT_VERSION);
}
/**
* @param version the version to set
*/
- public synchronized void setVersion(int version) {
+ public void setVersion(int version) {
setProperty(VERSION, version, DEFAULT_VERSION);
}