diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-30 14:40:48 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-30 14:40:48 +0000 |
commit | cd6b730536e7f9ae1b70a00a15ed83e853dfa357 (patch) | |
tree | db99eca43b3bc17b388d760bf657eb12d552581c /qadevOOo | |
parent | 66103ac97e38cf902f9d57bd142a8cd45b824862 (diff) |
coverity#1326980 SBSC: String concatenation in loop using + operator
Change-Id: I91ae690e26a05dbe4424b7f2ac3bd9ad029ebf5c
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/runner/util/dbg.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qadevOOo/runner/util/dbg.java b/qadevOOo/runner/util/dbg.java index d7f77c5250e9..ba06f3c714ff 100644 --- a/qadevOOo/runner/util/dbg.java +++ b/qadevOOo/runner/util/dbg.java @@ -258,15 +258,15 @@ public class dbg { public static void getSuppServices (Object aObject) { XServiceInfo xSI = UnoRuntime.queryInterface(XServiceInfo.class,aObject); printArray(xSI.getSupportedServiceNames()); - String str="Therein not Supported Service"; + StringBuilder str = new StringBuilder("Therein not Supported Service"); boolean notSupportedServices = false; for (int i=0;i<xSI.getSupportedServiceNames().length;i++) { if (! xSI.supportsService(xSI.getSupportedServiceNames()[i])) { notSupportedServices = true; - str+="\n" + xSI.getSupportedServiceNames()[i]; + str.append("\n").append(xSI.getSupportedServiceNames()[i]); } } if (notSupportedServices) - System.out.println(str); + System.out.println(str.toString()); } } |