Use replaceAll() return value
The replaceAll() method returns the result. It does not modify the current string.
This commit is contained in:
parent
99134544ca
commit
062db32e77
|
@ -465,7 +465,7 @@ public class MsHTTPSamplerProxy extends MsTestElement {
|
|||
url = "http://" + url;
|
||||
}
|
||||
if (StringUtils.isNotEmpty(this.getPort()) && this.getPort().startsWith("${")) {
|
||||
url.replaceAll(this.getPort(), "10990");
|
||||
url = url.replaceAll(this.getPort(), "10990");
|
||||
}
|
||||
if (url == null) {
|
||||
MSException.throwException("请重新选择环境");
|
||||
|
|
Loading…
Reference in New Issue