summaryrefslogtreecommitdiff
path: root/qadevOOo/tests
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-30 14:13:50 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-30 14:13:50 +0000
commit90867ff483d511ac966de17a171f8a6204b9d2e6 (patch)
treef75d37add7b5ba96bb0db1718d10b7d3846ae56d /qadevOOo/tests
parentef388007062606100f20d0e5003b637fa498021e (diff)
coverity#1326987 SBSC: String concatenation in loop using + operator
Change-Id: Ic84808388bf0b606ac0eb82f33b10ccfe334e7dc
Diffstat (limited to 'qadevOOo/tests')
-rw-r--r--qadevOOo/tests/java/ifc/ucb/_XSortedDynamicResultSetFactory.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/ifc/ucb/_XSortedDynamicResultSetFactory.java b/qadevOOo/tests/java/ifc/ucb/_XSortedDynamicResultSetFactory.java
index 730f2053154c..657e4e2b02e2 100644
--- a/qadevOOo/tests/java/ifc/ucb/_XSortedDynamicResultSetFactory.java
+++ b/qadevOOo/tests/java/ifc/ucb/_XSortedDynamicResultSetFactory.java
@@ -80,19 +80,19 @@ public class _XSortedDynamicResultSetFactory extends MultiMethodTest {
(XContentIdentifierFactory.class,oUCB) ;
String url = util.utils.getFullTestURL("SwXTextEmbeddedObject.sxw") ;
- String escUrl = "" ;
+ StringBuilder escUrl = new StringBuilder();
// In base URL of a JAR file in content URL all directory
// separators ('/') must be replaced with escape symbol '%2F'.
int idx = url.indexOf("/") ;
int lastIdx = -1 ;
while (idx >= 0) {
- escUrl += url.substring(lastIdx + 1, idx) + "%2F" ;
+ escUrl.append(url.substring(lastIdx + 1, idx)).append("%2F");
lastIdx = idx ;
idx = url.indexOf("/", idx + 1) ;
}
- escUrl += url.substring(lastIdx + 1) ;
- String cntUrl = "vnd.sun.star.pkg://" + escUrl + "/" ;
+ escUrl.append(url.substring(lastIdx + 1));
+ String cntUrl = "vnd.sun.star.pkg://" + escUrl.toString() + "/" ;
XContentIdentifier CI = ciFac.createContentIdentifier(cntUrl) ;