diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-30 14:07:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-30 14:07:12 +0000 |
commit | ef388007062606100f20d0e5003b637fa498021e (patch) | |
tree | 274a9bc57c2a0ab8b6719f7dd37828b1b8deb81b /qadevOOo | |
parent | 18b9a6d3e1401ee7660af7c7cea2b847360cb07c (diff) |
coverity#1326988 SBSC: String concatenation in loop using + operator
Change-Id: Ic960361b04e76c610a0302ada6a7f606afeae798
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/tests/java/ifc/util/_XURLTransformer.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qadevOOo/tests/java/ifc/util/_XURLTransformer.java b/qadevOOo/tests/java/ifc/util/_XURLTransformer.java index 9521d7e4dfe2..682804d7f7c8 100644 --- a/qadevOOo/tests/java/ifc/util/_XURLTransformer.java +++ b/qadevOOo/tests/java/ifc/util/_XURLTransformer.java @@ -419,10 +419,11 @@ public class _XURLTransformer extends MultiMethodTest { url.Complete = expectedCompleteFTP; log.println("getPresentation('" + expectedCompleteFTP + "', false): "); // the password must be masqurade with <****> - String asterisk = ""; + StringBuilder sb = new StringBuilder(); for (int n = 0 ; n < password.length(); n++){ - asterisk += "*"; + sb.append("*"); } + String asterisk = sb.toString(); asterisk = "<" + asterisk.substring(1,asterisk.length()); asterisk = asterisk.substring(0,asterisk.length()-1) + ">"; |