summaryrefslogtreecommitdiffstats
path: root/compatibility-client
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-09-23 08:45:49 +0200
committerHenri Sara <henri.sara@gmail.com>2017-09-23 09:45:49 +0300
commit40d15b32e341a38dacc24cc3ec79ab3ff0a25a50 (patch)
treeea0f03e7e3b4ed2af1e632065b4c7e8c30eb9d76 /compatibility-client
parentd3c752e0f2abec08cd98a66495d1345ad0f56d83 (diff)
downloadvaadin-framework-40d15b32e341a38dacc24cc3ec79ab3ff0a25a50.tar.gz
vaadin-framework-40d15b32e341a38dacc24cc3ec79ab3ff0a25a50.zip
Construct array inline (#10068)
And some trivial test enhancements
Diffstat (limited to 'compatibility-client')
-rw-r--r--compatibility-client/src/main/java/com/vaadin/v7/client/ui/calendar/schedule/WeekGrid.java2
-rw-r--r--compatibility-client/src/main/java/com/vaadin/v7/client/ui/richtextarea/VRichTextToolbar.java2
-rw-r--r--compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Escalator.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/calendar/schedule/WeekGrid.java b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/calendar/schedule/WeekGrid.java
index 736c5d873f..9ef922b364 100644
--- a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/calendar/schedule/WeekGrid.java
+++ b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/calendar/schedule/WeekGrid.java
@@ -592,7 +592,7 @@ public class WeekGrid extends SimplePanel {
} else {
// FIXME Use dts.getAmPmStrings(); and make sure that
// DateTimeService has a some Locale set.
- String[] ampm = new String[] { "AM", "PM" };
+ String[] ampm = { "AM", "PM" };
int amStop = (lastHour < 11) ? lastHour : 11;
int pmStart = (firstHour > 11) ? firstHour % 11 : 0;
diff --git a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/richtextarea/VRichTextToolbar.java b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/richtextarea/VRichTextToolbar.java
index fcb189dfd7..8f52f281f9 100644
--- a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/richtextarea/VRichTextToolbar.java
+++ b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/richtextarea/VRichTextToolbar.java
@@ -275,7 +275,7 @@ public class VRichTextToolbar extends Composite {
}
}
- private static final RichTextArea.FontSize[] fontSizesConstants = new RichTextArea.FontSize[] {
+ private static final RichTextArea.FontSize[] fontSizesConstants = {
RichTextArea.FontSize.XX_SMALL, RichTextArea.FontSize.X_SMALL,
RichTextArea.FontSize.SMALL, RichTextArea.FontSize.MEDIUM,
RichTextArea.FontSize.LARGE, RichTextArea.FontSize.X_LARGE,
diff --git a/compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Escalator.java b/compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Escalator.java
index e11e0d11aa..b38cc404d8 100644
--- a/compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Escalator.java
+++ b/compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Escalator.java
@@ -2751,7 +2751,7 @@ public class Escalator extends Widget
*
* If more rows were added than the new escalator rows can
* account for, we need to start to spin the escalator to update
- * the remaining rows aswell.
+ * the remaining rows as well.
*/
final int rowsStillNeeded = numberOfRows - addedRows.size();