From 7fd440d2448587f7e9958e84c84ec2bfd30ba8a0 Mon Sep 17 00:00:00 2001 From: Ahmed Ashour Date: Thu, 28 Sep 2017 07:45:09 +0200 Subject: Use single character for StringBuilder.append (#10102) --- .../src/main/java/com/vaadin/v7/client/ui/VScrollTable.java | 2 +- .../java/com/vaadin/v7/client/ui/calendar/CalendarConnector.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'compatibility-client/src/main') diff --git a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VScrollTable.java b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VScrollTable.java index eeeb3f6c6c..cef3b1525d 100644 --- a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VScrollTable.java +++ b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VScrollTable.java @@ -3127,7 +3127,7 @@ public class VScrollTable extends FlowPanel if (s.equals(stylePrimaryName)) { sb.append("-header-drag "); } else { - sb.append(" "); + sb.append(' '); } } } diff --git a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/calendar/CalendarConnector.java b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/calendar/CalendarConnector.java index 9d3e8726a6..4cfc7a2b19 100644 --- a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/calendar/CalendarConnector.java +++ b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/calendar/CalendarConnector.java @@ -185,7 +185,7 @@ public class CalendarConnector extends AbstractLegacyComponentConnector if (hasEventListener(CalendarEventId.EVENTMOVE)) { StringBuilder sb = new StringBuilder(); sb.append(DateUtil.formatClientSideDate(event.getStart())); - sb.append("-"); + sb.append('-'); sb.append(DateUtil .formatClientSideTime(event.getStartTime())); rpc.eventMove(event.getIndex(), sb.toString()); @@ -200,7 +200,7 @@ public class CalendarConnector extends AbstractLegacyComponentConnector buffer.append( DateUtil.formatClientSideDate(event.getStart())); - buffer.append("-"); + buffer.append('-'); buffer.append(DateUtil .formatClientSideTime(event.getStartTime())); @@ -209,7 +209,7 @@ public class CalendarConnector extends AbstractLegacyComponentConnector buffer = new StringBuilder(); buffer.append( DateUtil.formatClientSideDate(event.getEnd())); - buffer.append("-"); + buffer.append('-'); buffer.append( DateUtil.formatClientSideTime(event.getEndTime())); -- cgit v1.2.3