Kaydet (Commit) 89ea05d8 authored tarafından Robert Antoni Buj i Gelonch's avatar Robert Antoni Buj i Gelonch Kaydeden (comit) Noel Grandin

connectivity: Use chain of .append methods

Change-Id: I15604e97dc38f1fcfa62c3d86208e72a86dda23e
Reviewed-on: https://gerrit.libreoffice.org/11688Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 16417688
...@@ -116,8 +116,8 @@ public class HsqlDatabase extends AbstractDatabase ...@@ -116,8 +116,8 @@ public class HsqlDatabase extends AbstractDatabase
createStatement.append(", "); createStatement.append(", ");
} }
createStatement.append("\"" + columns[i].getName()); createStatement.append("\"").append(columns[i].getName());
createStatement.append("\" " + columns[i].getTypeName()); createStatement.append("\" ").append(columns[i].getTypeName());
if (columns[i].isRequired()) if (columns[i].isRequired())
{ {
...@@ -150,7 +150,7 @@ public class HsqlDatabase extends AbstractDatabase ...@@ -150,7 +150,7 @@ public class HsqlDatabase extends AbstractDatabase
{ {
foreignKeyRefsForTable.append(", "); foreignKeyRefsForTable.append(", ");
} }
foreignKeyRefsForTable.append("\"" + columns[i].getForeignColumn() + "\""); foreignKeyRefsForTable.append("\"").append(columns[i].getForeignColumn()).append("\"");
foreignKeyRefs.put(foreignTable, foreignKeyRefsForTable.toString()); foreignKeyRefs.put(foreignTable, foreignKeyRefsForTable.toString());
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment