diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-30 14:26:33 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-30 14:26:33 +0000 |
commit | 1c925e49a365cec690f3a63a4b8cf89d85621df8 (patch) | |
tree | f3d8c46862e09590502a6373f4dad1418edb595e /qadevOOo/tests | |
parent | 933b541684203539300f5a10149934c8380f190a (diff) |
coverity#1326985 SBSC: String concatenation in loop using + operator
Change-Id: I05d12ace635cc780e59a02d79265ac057cb07c0f
Diffstat (limited to 'qadevOOo/tests')
-rw-r--r-- | qadevOOo/tests/java/ifc/frame/_XDocumentTemplates.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/ifc/frame/_XDocumentTemplates.java b/qadevOOo/tests/java/ifc/frame/_XDocumentTemplates.java index b7ce48c70758..2031ca3c3e86 100644 --- a/qadevOOo/tests/java/ifc/frame/_XDocumentTemplates.java +++ b/qadevOOo/tests/java/ifc/frame/_XDocumentTemplates.java @@ -189,19 +189,19 @@ public class _XDocumentTemplates extends MultiMethodTest { */ protected String getContentList(XContent content) { XResultSet statRes = getStatResultSet(content); - String ret = ""; + StringBuilder ret = new StringBuilder(); try { statRes.first(); XRow row = UnoRuntime.queryInterface(XRow.class, statRes); while(! statRes.isAfterLast()) { - ret += "\n " + row.getString(1); + ret.append("\n ").append(row.getString(1)); statRes.next(); } } catch (com.sun.star.sdbc.SQLException e) { log.println("Exception occurred:" + e); } - return ret; + return ret.toString(); } protected XResultSet getStatResultSet(XContent content) { |