marcsaeg 02/03/14 14:16:30
Modified: httpclient/src/java/org/apache/commons/httpclient
HttpSharedState.java
Log:
Added several missing synchronized keywords. Thanks to Sean Sullivan for
pointing out my lousy typing skills.
Revision Changes Path
1.2 +7 -7
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpSharedState.java
Index: HttpSharedState.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpSharedState.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- HttpSharedState.java 22 Feb 2002 19:24:23 -0000 1.1
+++ HttpSharedState.java 14 Mar 2002 22:16:29 -0000 1.2
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpSharedState.java,v
1.1 2002/02/22 19:24:23 marcsaeg Exp $
- * $Revision: 1.1 $
- * $Date: 2002/02/22 19:24:23 $
+ * $Header:
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpSharedState.java,v
1.2 2002/03/14 22:16:29 marcsaeg Exp $
+ * $Revision: 1.2 $
+ * $Date: 2002/03/14 22:16:29 $
* ====================================================================
*
* The Apache Software License, Version 1.1
@@ -96,7 +96,7 @@
*
* @param newCookies - an array of cookies to add.
*/
- public void addCookies(Cookie[] newCookies)
+ public synchronized void addCookies(Cookie[] newCookies)
{
super.addCookies(newCookies);
}
@@ -106,7 +106,7 @@
*
* @return an array containing all the cookies
*/
- public Cookie[] getCookies()
+ public synchronized Cookie[] getCookies()
{
return super.getCookies();
}
@@ -138,7 +138,7 @@
* @param realm - the authentication realm
* @param credentials - the authentication credentials
*/
- public void setCredentials(String realm, Credentials credentials)
+ public synchronized void setCredentials(String realm, Credentials credentials)
{
super.setCredentials(realm, credentials);
}
@@ -150,7 +150,7 @@
* @param realm - the authorization realm.
* @return the authorizations credentials for the given realm
*/
- public Credentials getCredentials(String realm)
+ public synchronized Credentials getCredentials(String realm)
{
return super.getCredentials(realm);
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>