mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
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…
x
Reference in New Issue
Block a user