khammond 01/09/25 22:23:25
Modified: src/org/apache/jmeter/protocol/http/config UrlConfig.java
Log:
In getPath(), return a single forward slash if the path is null. This makes more
sense than returning an empty string.
Revision Changes Path
1.23 +4 -4
jakarta-jmeter/src/org/apache/jmeter/protocol/http/config/UrlConfig.java
Index: UrlConfig.java
===================================================================
RCS file:
/home/cvs/jakarta-jmeter/src/org/apache/jmeter/protocol/http/config/UrlConfig.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- UrlConfig.java 2001/09/26 04:52:47 1.22
+++ UrlConfig.java 2001/09/26 05:23:25 1.23
@@ -66,8 +66,8 @@
* Apache Foundation
*
*@author Michael Stover
- *@created $Date: 2001/09/26 04:52:47 $
- *@version $Revision: 1.22 $
+ *@created $Date: 2001/09/26 05:23:25 $
+ *@version $Revision: 1.23 $
*/
public class UrlConfig extends AbstractConfigElement implements Serializable
@@ -263,14 +263,14 @@
/**
* Gets the Path attribute of the UrlConfig object
*
- *@return the path if it exists; otherwise, return an empty string
+ *@return the path if it exists; otherwise, return a single forward slash
*/
public String getPath()
{
String path = (String)properties.get(PATH);
if (path == null)
{
- path = "";
+ path = "/";
}
return path;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]