mirror of https://github.com/apache/cloudstack.git
findbugs make use of return of string manipulation
This commit is contained in:
parent
ea355d7383
commit
ca1b340cef
|
|
@ -137,14 +137,13 @@ public class PrimaryDataStoreImpl implements PrimaryDataStore {
|
|||
|
||||
@Override
|
||||
public String getUri() {
|
||||
String path = pdsv.getPath();
|
||||
path.replaceFirst("/*", "");
|
||||
String path = pdsv.getPath().replaceFirst("/*", "");
|
||||
StringBuilder builder = new StringBuilder();
|
||||
builder.append(pdsv.getPoolType());
|
||||
builder.append("://");
|
||||
builder.append(pdsv.getHostAddress());
|
||||
builder.append(File.separator);
|
||||
builder.append(pdsv.getPath());
|
||||
builder.append(path);
|
||||
builder.append(File.separator);
|
||||
builder.append("?" + EncodingType.ROLE + "=" + getRole());
|
||||
builder.append("&" + EncodingType.STOREUUID + "=" + pdsv.getUuid());
|
||||
|
|
|
|||
Loading…
Reference in New Issue