diff options
Diffstat (limited to 'compatibility-server/src')
6 files changed, 9 insertions, 9 deletions
diff --git a/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/RowItem.java b/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/RowItem.java index 9030202638..b7e6a4f38e 100644 --- a/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/RowItem.java +++ b/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/RowItem.java @@ -129,9 +129,9 @@ public final class RowItem implements Item { s.append("ID:"); s.append(getId().toString()); for (Object propId : getItemPropertyIds()) { - s.append("|"); + s.append('|'); s.append(propId.toString()); - s.append(":"); + s.append(':'); Object value = getItemProperty(propId).getValue(); s.append((null != value) ? value.toString() : null); } diff --git a/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/query/FreeformQuery.java b/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/query/FreeformQuery.java index 8c1282673e..bc5cfc56a3 100644 --- a/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/query/FreeformQuery.java +++ b/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/query/FreeformQuery.java @@ -471,7 +471,7 @@ public class FreeformQuery extends AbstractTransactionalQuery if (keys[ix] == null) { where.append(" IS NULL"); } else { - where.append(" = '").append(keys[ix]).append("'"); + where.append(" = '").append(keys[ix]).append('\''); } if (ix < primaryKeyColumns.size() - 1) { where.append(" AND "); diff --git a/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/query/TableQuery.java b/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/query/TableQuery.java index 065f16c029..b415c5ac51 100644 --- a/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/query/TableQuery.java +++ b/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/query/TableQuery.java @@ -439,10 +439,10 @@ public class TableQuery extends AbstractTransactionalQuery if (fullTableName == null) { StringBuilder sb = new StringBuilder(); if (catalogName != null) { - sb.append(catalogName).append("."); + sb.append(catalogName).append('.'); } if (schemaName != null) { - sb.append(schemaName).append("."); + sb.append(schemaName).append('.'); } sb.append(tableName); fullTableName = sb.toString(); diff --git a/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/query/generator/DefaultSQLGenerator.java b/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/query/generator/DefaultSQLGenerator.java index 2c8ff8b126..88fc18084c 100644 --- a/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/query/generator/DefaultSQLGenerator.java +++ b/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/query/generator/DefaultSQLGenerator.java @@ -213,12 +213,12 @@ public class DefaultSQLGenerator implements SQLGenerator { if (!first) { query.append(", "); } - query.append("?"); + query.append('?'); sh.addParameterValue(columnToValueMap.get(column), item.getItemProperty(column).getType()); first = false; } - query.append(")"); + query.append(')'); sh.setQueryString(query.toString()); return sh; } diff --git a/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/query/generator/OracleGenerator.java b/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/query/generator/OracleGenerator.java index bc7c659f07..34f93ec038 100644 --- a/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/query/generator/OracleGenerator.java +++ b/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/query/generator/OracleGenerator.java @@ -88,7 +88,7 @@ public class OracleGenerator extends DefaultSQLGenerator { query.append( QueryBuilder.getWhereStringForFilters(filters, sh)); } - query.append(")"); + query.append(')'); sh.setQueryString(query.toString()); return sh; } diff --git a/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/query/generator/filter/QueryBuilder.java b/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/query/generator/filter/QueryBuilder.java index b435757e8e..6bd65de0dc 100644 --- a/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/query/generator/filter/QueryBuilder.java +++ b/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/query/generator/filter/QueryBuilder.java @@ -94,7 +94,7 @@ public class QueryBuilder implements Serializable { StringBuilder result = new StringBuilder(); for (Filter f : filters) { result.append(getWhereStringForFilter(f, sh)); - result.append(" ").append(joinString).append(" "); + result.append(' ').append(joinString).append(' '); } // Remove the last instance of joinString result.delete(result.length() - joinString.length() - 2, |