From 3c0c3e0a997f66821d037df641c435dda930a890 Mon Sep 17 00:00:00 2001 From: Ahmed Ashour Date: Mon, 25 Sep 2017 06:54:30 +0200 Subject: Fix typos (#10071) And use varargs in a test. --- compatibility-server/src/main/java/com/vaadin/v7/ui/AbstractSelect.java | 2 +- compatibility-server/src/main/java/com/vaadin/v7/ui/Tree.java | 2 +- compatibility-server/src/main/java/com/vaadin/v7/ui/Upload.java | 2 +- .../src/test/java/com/vaadin/v7/data/util/BeanItemTest.java | 2 +- .../com/vaadin/v7/data/util/sqlcontainer/query/FreeformQueryTest.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'compatibility-server') diff --git a/compatibility-server/src/main/java/com/vaadin/v7/ui/AbstractSelect.java b/compatibility-server/src/main/java/com/vaadin/v7/ui/AbstractSelect.java index eddd57888b..eada1aa02b 100644 --- a/compatibility-server/src/main/java/com/vaadin/v7/ui/AbstractSelect.java +++ b/compatibility-server/src/main/java/com/vaadin/v7/ui/AbstractSelect.java @@ -628,7 +628,7 @@ public abstract class AbstractSelect extends AbstractField implements /** * Gets the visible item ids. In Select, this returns list of all item ids, - * but can be overriden in subclasses if they paint only part of the items + * but can be overridden in subclasses if they paint only part of the items * to the terminal or null if no items is visible. */ public Collection getVisibleItemIds() { diff --git a/compatibility-server/src/main/java/com/vaadin/v7/ui/Tree.java b/compatibility-server/src/main/java/com/vaadin/v7/ui/Tree.java index 0dc1772f65..cba3dd45da 100644 --- a/compatibility-server/src/main/java/com/vaadin/v7/ui/Tree.java +++ b/compatibility-server/src/main/java/com/vaadin/v7/ui/Tree.java @@ -1432,7 +1432,7 @@ public class Tree extends AbstractSelect implements Container.Hierarchical, public abstract String getStyle(Tree source, Object itemId); } - // Overriden so javadoc comes from Container.Hierarchical + // Overridden so javadoc comes from Container.Hierarchical @Override public boolean removeItem(Object itemId) throws UnsupportedOperationException { diff --git a/compatibility-server/src/main/java/com/vaadin/v7/ui/Upload.java b/compatibility-server/src/main/java/com/vaadin/v7/ui/Upload.java index 0eeea4ac53..6ded53b3a1 100644 --- a/compatibility-server/src/main/java/com/vaadin/v7/ui/Upload.java +++ b/compatibility-server/src/main/java/com/vaadin/v7/ui/Upload.java @@ -194,7 +194,7 @@ public class Upload extends AbstractLegacyComponent target.addAttribute("nextid", nextid); - // Post file to this strean variable + // Post file to this stream variable target.addVariable(this, "action", getStreamVariable()); } diff --git a/compatibility-server/src/test/java/com/vaadin/v7/data/util/BeanItemTest.java b/compatibility-server/src/test/java/com/vaadin/v7/data/util/BeanItemTest.java index a9eb3d740b..8232f9d532 100644 --- a/compatibility-server/src/test/java/com/vaadin/v7/data/util/BeanItemTest.java +++ b/compatibility-server/src/test/java/com/vaadin/v7/data/util/BeanItemTest.java @@ -373,7 +373,7 @@ public class BeanItemTest { } @Test - public void testOverridenGenericMethods() { + public void testOverriddenGenericMethods() { BeanItem item = new BeanItem(new SubClass()); Property property = item.getItemProperty("property"); diff --git a/compatibility-server/src/test/java/com/vaadin/v7/data/util/sqlcontainer/query/FreeformQueryTest.java b/compatibility-server/src/test/java/com/vaadin/v7/data/util/sqlcontainer/query/FreeformQueryTest.java index b32f16325d..04d357c71c 100644 --- a/compatibility-server/src/test/java/com/vaadin/v7/data/util/sqlcontainer/query/FreeformQueryTest.java +++ b/compatibility-server/src/test/java/com/vaadin/v7/data/util/sqlcontainer/query/FreeformQueryTest.java @@ -137,7 +137,7 @@ public class FreeformQueryTest { public void getCount_moreComplexQuery_returnsThree() throws SQLException { FreeformQuery query = new FreeformQuery( "SELECT * FROM people WHERE \"NAME\" LIKE '%lle'", - connectionPool, new String[] { "ID" }); + connectionPool, "ID"); Assert.assertEquals(3, query.getCount()); } -- cgit v1.2.3