Skip to content

Commit ca1b340

Browse files
committed
findbugs make use of return of string manipulation
1 parent ea355d7 commit ca1b340

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎engine/storage/volume/src/org/apache/cloudstack/storage/datastore/PrimaryDataStoreImpl.java‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,13 @@ public long getId() {
137137

138138
@Override
139139
public String getUri() {
140-
String path = pdsv.getPath();
141-
path.replaceFirst("/*", "");
140+
String path = pdsv.getPath().replaceFirst("/*", "");
142141
StringBuilder builder = new StringBuilder();
143142
builder.append(pdsv.getPoolType());
144143
builder.append("://");
145144
builder.append(pdsv.getHostAddress());
146145
builder.append(File.separator);
147-
builder.append(pdsv.getPath());
146+
builder.append(path);
148147
builder.append(File.separator);
149148
builder.append("?" + EncodingType.ROLE + "=" + getRole());
150149
builder.append("&" + EncodingType.STOREUUID + "=" + pdsv.getUuid());

0 commit comments

Comments
 (0)