summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2017-03-06 15:27:09 +0200
committerHenri Sara <henri.sara@gmail.com>2017-03-07 12:36:54 +0200
commit7646cfa49baeb4029b4af74b3da97b61b3363215 (patch)
treeb1e96d16831fbe824d5de705ac97ea9df5c516f3
parentdaa42bfd19ae97dc6508add4f6bc69667556ad6b (diff)
downloadvaadin-framework-7646cfa49baeb4029b4af74b3da97b61b3363215.tar.gz
vaadin-framework-7646cfa49baeb4029b4af74b3da97b61b3363215.zip
Add missing since, remove unused command
-rw-r--r--compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Grid.java17
-rw-r--r--server/src/main/java/com/vaadin/util/EncodeUtil.java2
2 files changed, 1 insertions, 18 deletions
diff --git a/compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Grid.java b/compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Grid.java
index ea7901773d..7ba5c9cc82 100644
--- a/compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Grid.java
+++ b/compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Grid.java
@@ -1316,23 +1316,6 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>,
private static final String ERROR_CLASS_NAME = "error";
private static final String NOT_EDITABLE_CLASS_NAME = "not-editable";
- ScheduledCommand fieldFocusCommand = new ScheduledCommand() {
- private int count = 0;
-
- @Override
- public void execute() {
- Element focusedElement = WidgetUtil.getFocusedElement();
- if (focusedElement == grid.getElement()
- || focusedElement == Document.get().getBody()
- || count > 2) {
- focusColumn(focusedColumnIndexDOM);
- } else {
- ++count;
- Scheduler.get().scheduleDeferred(this);
- }
- }
- };
-
/**
* A handler for events related to the Grid editor. Responsible for
* opening, moving or closing the editor based on the received event.
diff --git a/server/src/main/java/com/vaadin/util/EncodeUtil.java b/server/src/main/java/com/vaadin/util/EncodeUtil.java
index eae0890542..68cdb600e1 100644
--- a/server/src/main/java/com/vaadin/util/EncodeUtil.java
+++ b/server/src/main/java/com/vaadin/util/EncodeUtil.java
@@ -21,7 +21,7 @@ import java.nio.charset.Charset;
* Utilities related to various encoding schemes.
*
* @author Vaadin Ltd
- * @since
+ * @since 7.7.7
*/
public final class EncodeUtil {
private static final Charset UTF8 = Charset.forName("UTF-8");