aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/main')
-rw-r--r--server/src/main/java/com/vaadin/data/HasItems.java3
-rw-r--r--server/src/main/java/com/vaadin/data/provider/DataCommunicator.java3
-rw-r--r--server/src/main/java/com/vaadin/event/ActionManager.java2
-rw-r--r--server/src/main/java/com/vaadin/event/ListenerMethod.java4
-rw-r--r--server/src/main/java/com/vaadin/event/dd/acceptcriteria/ClientSideCriterion.java4
-rw-r--r--server/src/main/java/com/vaadin/event/dd/acceptcriteria/ServerSideCriterion.java4
-rw-r--r--server/src/main/java/com/vaadin/event/selection/SelectionEvent.java3
-rw-r--r--server/src/main/java/com/vaadin/server/ClassResource.java4
-rw-r--r--server/src/main/java/com/vaadin/server/CustomizedSystemMessages.java5
-rw-r--r--server/src/main/java/com/vaadin/server/ExternalResource.java3
-rw-r--r--server/src/main/java/com/vaadin/server/JsonPaintTarget.java14
-rw-r--r--server/src/main/java/com/vaadin/server/KeyMapper.java3
-rw-r--r--server/src/main/java/com/vaadin/server/PaintException.java3
-rw-r--r--server/src/main/java/com/vaadin/server/UIProviderEvent.java3
-rw-r--r--server/src/main/java/com/vaadin/server/communication/PushRequestHandler.java3
-rw-r--r--server/src/main/java/com/vaadin/ui/ComboBox.java2
-rw-r--r--server/src/main/java/com/vaadin/ui/Component.java3
-rw-r--r--server/src/main/java/com/vaadin/ui/Layout.java2
-rw-r--r--server/src/main/java/com/vaadin/ui/MultiSelect.java4
-rw-r--r--server/src/main/java/com/vaadin/ui/Notification.java2
-rw-r--r--server/src/main/java/com/vaadin/ui/UI.java2
-rw-r--r--server/src/main/java/com/vaadin/ui/Window.java2
22 files changed, 29 insertions, 49 deletions
diff --git a/server/src/main/java/com/vaadin/data/HasItems.java b/server/src/main/java/com/vaadin/data/HasItems.java
index 92cd6a435d..16a47b9df2 100644
--- a/server/src/main/java/com/vaadin/data/HasItems.java
+++ b/server/src/main/java/com/vaadin/data/HasItems.java
@@ -15,7 +15,6 @@
*/
package com.vaadin.data;
-import java.io.Serializable;
import java.util.Arrays;
import java.util.Collection;
import java.util.stream.Collectors;
@@ -36,7 +35,7 @@ import com.vaadin.ui.Component;
* @param <T>
* the type of the displayed item
*/
-public interface HasItems<T> extends Component, Serializable {
+public interface HasItems<T> extends Component {
/**
* Returns the source of data items used by this listing.
diff --git a/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java b/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java
index 6fc0377a74..2819543521 100644
--- a/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java
+++ b/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java
@@ -15,7 +15,6 @@
*/
package com.vaadin.data.provider;
-import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
@@ -93,7 +92,7 @@ public class DataCommunicator<T> extends AbstractExtension {
* {@link DataGenerator#destroyData(Object)} will be called for them.
*/
protected class ActiveDataHandler
- implements Serializable, DataGenerator<T> {
+ implements DataGenerator<T> {
/**
* Set of key strings for currently active data objects
diff --git a/server/src/main/java/com/vaadin/event/ActionManager.java b/server/src/main/java/com/vaadin/event/ActionManager.java
index b9e493bce6..46073fabf5 100644
--- a/server/src/main/java/com/vaadin/event/ActionManager.java
+++ b/server/src/main/java/com/vaadin/event/ActionManager.java
@@ -42,7 +42,7 @@ import com.vaadin.ui.Component;
*
*/
public class ActionManager
- implements Action.Container, Action.Handler, Action.Notifier {
+ implements Action.Handler, Action.Notifier {
private static final long serialVersionUID = 1641868163608066491L;
diff --git a/server/src/main/java/com/vaadin/event/ListenerMethod.java b/server/src/main/java/com/vaadin/event/ListenerMethod.java
index 8391303c89..49c6536da9 100644
--- a/server/src/main/java/com/vaadin/event/ListenerMethod.java
+++ b/server/src/main/java/com/vaadin/event/ListenerMethod.java
@@ -609,13 +609,11 @@ public class ListenerMethod implements EventListener, Serializable {
* @author Vaadin Ltd.
* @since 3.0
*/
- public class MethodException extends RuntimeException
- implements Serializable {
+ public class MethodException extends RuntimeException {
private MethodException(String message, Throwable cause) {
super(message, cause);
}
-
}
/**
diff --git a/server/src/main/java/com/vaadin/event/dd/acceptcriteria/ClientSideCriterion.java b/server/src/main/java/com/vaadin/event/dd/acceptcriteria/ClientSideCriterion.java
index 62c808a82c..8e3ff9e491 100644
--- a/server/src/main/java/com/vaadin/event/dd/acceptcriteria/ClientSideCriterion.java
+++ b/server/src/main/java/com/vaadin/event/dd/acceptcriteria/ClientSideCriterion.java
@@ -15,8 +15,6 @@
*/
package com.vaadin.event.dd.acceptcriteria;
-import java.io.Serializable;
-
import com.vaadin.server.PaintException;
import com.vaadin.server.PaintTarget;
@@ -33,7 +31,7 @@ import com.vaadin.server.PaintTarget;
* @since 6.3
*/
public abstract class ClientSideCriterion
- implements Serializable, AcceptCriterion {
+ implements AcceptCriterion {
/*
* All criteria that extend this must be completely validatable on client
diff --git a/server/src/main/java/com/vaadin/event/dd/acceptcriteria/ServerSideCriterion.java b/server/src/main/java/com/vaadin/event/dd/acceptcriteria/ServerSideCriterion.java
index 48a41160d2..4f93708ed4 100644
--- a/server/src/main/java/com/vaadin/event/dd/acceptcriteria/ServerSideCriterion.java
+++ b/server/src/main/java/com/vaadin/event/dd/acceptcriteria/ServerSideCriterion.java
@@ -15,8 +15,6 @@
*/
package com.vaadin.event.dd.acceptcriteria;
-import java.io.Serializable;
-
import com.vaadin.event.Transferable;
import com.vaadin.server.PaintException;
import com.vaadin.server.PaintTarget;
@@ -39,7 +37,7 @@ import com.vaadin.server.PaintTarget;
* @since 6.3
*/
public abstract class ServerSideCriterion
- implements Serializable, AcceptCriterion {
+ implements AcceptCriterion {
private static final long serialVersionUID = 2128510128911628902L;
diff --git a/server/src/main/java/com/vaadin/event/selection/SelectionEvent.java b/server/src/main/java/com/vaadin/event/selection/SelectionEvent.java
index 46f52eb734..6287abaa47 100644
--- a/server/src/main/java/com/vaadin/event/selection/SelectionEvent.java
+++ b/server/src/main/java/com/vaadin/event/selection/SelectionEvent.java
@@ -15,7 +15,6 @@
*/
package com.vaadin.event.selection;
-import java.io.Serializable;
import java.util.Optional;
import java.util.Set;
@@ -31,7 +30,7 @@ import com.vaadin.event.HasUserOriginated;
* @param <T>
* the data type of the selection model
*/
-public interface SelectionEvent<T> extends HasUserOriginated, Serializable {
+public interface SelectionEvent<T> extends HasUserOriginated {
/**
* Get first selected data item.
diff --git a/server/src/main/java/com/vaadin/server/ClassResource.java b/server/src/main/java/com/vaadin/server/ClassResource.java
index 83a9371f8f..a744bd3076 100644
--- a/server/src/main/java/com/vaadin/server/ClassResource.java
+++ b/server/src/main/java/com/vaadin/server/ClassResource.java
@@ -16,8 +16,6 @@
package com.vaadin.server;
-import java.io.Serializable;
-
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.UI;
import com.vaadin.util.FileTypeResolver;
@@ -34,7 +32,7 @@ import com.vaadin.util.FileTypeResolver;
* @since 3.0
*/
@SuppressWarnings("serial")
-public class ClassResource implements ConnectorResource, Serializable {
+public class ClassResource implements ConnectorResource {
/**
* Default buffer size for this stream resource.
diff --git a/server/src/main/java/com/vaadin/server/CustomizedSystemMessages.java b/server/src/main/java/com/vaadin/server/CustomizedSystemMessages.java
index c8f9781f67..a087cdd3fe 100644
--- a/server/src/main/java/com/vaadin/server/CustomizedSystemMessages.java
+++ b/server/src/main/java/com/vaadin/server/CustomizedSystemMessages.java
@@ -16,8 +16,6 @@
package com.vaadin.server;
-import java.io.Serializable;
-
/**
* Contains the system messages used to notify the user about various critical
* situations that can occur.
@@ -52,8 +50,7 @@ import java.io.Serializable;
* </p>
*/
-public class CustomizedSystemMessages extends SystemMessages
- implements Serializable {
+public class CustomizedSystemMessages extends SystemMessages {
/**
* Sets the URL to go to when the session has expired.
diff --git a/server/src/main/java/com/vaadin/server/ExternalResource.java b/server/src/main/java/com/vaadin/server/ExternalResource.java
index 25e8b97acb..b4ec4615d1 100644
--- a/server/src/main/java/com/vaadin/server/ExternalResource.java
+++ b/server/src/main/java/com/vaadin/server/ExternalResource.java
@@ -16,7 +16,6 @@
package com.vaadin.server;
-import java.io.Serializable;
import java.net.URL;
import com.vaadin.util.FileTypeResolver;
@@ -30,7 +29,7 @@ import com.vaadin.util.FileTypeResolver;
* @since 3.0
*/
@SuppressWarnings("serial")
-public class ExternalResource implements Resource, Serializable {
+public class ExternalResource implements Resource {
/**
* Url of the download.
diff --git a/server/src/main/java/com/vaadin/server/JsonPaintTarget.java b/server/src/main/java/com/vaadin/server/JsonPaintTarget.java
index 4cfb389851..8b45c64b2d 100644
--- a/server/src/main/java/com/vaadin/server/JsonPaintTarget.java
+++ b/server/src/main/java/com/vaadin/server/JsonPaintTarget.java
@@ -867,7 +867,7 @@ public class JsonPaintTarget implements PaintTarget {
public abstract String getJsonPresentation();
}
- class BooleanVariable extends Variable implements Serializable {
+ class BooleanVariable extends Variable {
boolean value;
public BooleanVariable(VariableOwner owner, String name, boolean v) {
@@ -882,7 +882,7 @@ public class JsonPaintTarget implements PaintTarget {
}
- class StringVariable extends Variable implements Serializable {
+ class StringVariable extends Variable {
String value;
public StringVariable(VariableOwner owner, String name, String v) {
@@ -897,7 +897,7 @@ public class JsonPaintTarget implements PaintTarget {
}
- class IntVariable extends Variable implements Serializable {
+ class IntVariable extends Variable {
int value;
public IntVariable(VariableOwner owner, String name, int v) {
@@ -911,7 +911,7 @@ public class JsonPaintTarget implements PaintTarget {
}
}
- class LongVariable extends Variable implements Serializable {
+ class LongVariable extends Variable {
long value;
public LongVariable(VariableOwner owner, String name, long v) {
@@ -925,7 +925,7 @@ public class JsonPaintTarget implements PaintTarget {
}
}
- class FloatVariable extends Variable implements Serializable {
+ class FloatVariable extends Variable {
float value;
public FloatVariable(VariableOwner owner, String name, float v) {
@@ -939,7 +939,7 @@ public class JsonPaintTarget implements PaintTarget {
}
}
- class DoubleVariable extends Variable implements Serializable {
+ class DoubleVariable extends Variable {
double value;
public DoubleVariable(VariableOwner owner, String name, double v) {
@@ -953,7 +953,7 @@ public class JsonPaintTarget implements PaintTarget {
}
}
- class ArrayVariable extends Variable implements Serializable {
+ class ArrayVariable extends Variable {
String[] value;
public ArrayVariable(VariableOwner owner, String name, String[] v) {
diff --git a/server/src/main/java/com/vaadin/server/KeyMapper.java b/server/src/main/java/com/vaadin/server/KeyMapper.java
index e6a3e1ae7f..bd6f37f3af 100644
--- a/server/src/main/java/com/vaadin/server/KeyMapper.java
+++ b/server/src/main/java/com/vaadin/server/KeyMapper.java
@@ -16,7 +16,6 @@
package com.vaadin.server;
-import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
@@ -30,7 +29,7 @@ import com.vaadin.data.provider.DataKeyMapper;
* @author Vaadin Ltd.
* @since 3.0
*/
-public class KeyMapper<V> implements DataKeyMapper<V>, Serializable {
+public class KeyMapper<V> implements DataKeyMapper<V> {
private int lastKey = 0;
diff --git a/server/src/main/java/com/vaadin/server/PaintException.java b/server/src/main/java/com/vaadin/server/PaintException.java
index 82a35ed274..07fca05ac3 100644
--- a/server/src/main/java/com/vaadin/server/PaintException.java
+++ b/server/src/main/java/com/vaadin/server/PaintException.java
@@ -17,7 +17,6 @@
package com.vaadin.server;
import java.io.IOException;
-import java.io.Serializable;
/**
* <code>PaintExcepection</code> is thrown if painting of a component fails.
@@ -26,7 +25,7 @@ import java.io.Serializable;
* @since 3.0
*/
@SuppressWarnings("serial")
-public class PaintException extends IOException implements Serializable {
+public class PaintException extends IOException {
/**
* Constructs an instance of <code>PaintExeception</code> with the specified
diff --git a/server/src/main/java/com/vaadin/server/UIProviderEvent.java b/server/src/main/java/com/vaadin/server/UIProviderEvent.java
index 56b5bb55d0..411e5ab5df 100644
--- a/server/src/main/java/com/vaadin/server/UIProviderEvent.java
+++ b/server/src/main/java/com/vaadin/server/UIProviderEvent.java
@@ -16,7 +16,6 @@
package com.vaadin.server;
-import java.io.Serializable;
import java.util.EventObject;
/**
@@ -27,7 +26,7 @@ import java.util.EventObject;
* @author Vaadin Ltd
* @since 7.0.0
*/
-public class UIProviderEvent extends EventObject implements Serializable {
+public class UIProviderEvent extends EventObject {
private final VaadinRequest request;
diff --git a/server/src/main/java/com/vaadin/server/communication/PushRequestHandler.java b/server/src/main/java/com/vaadin/server/communication/PushRequestHandler.java
index 79ba80d7fe..71f8809e4c 100644
--- a/server/src/main/java/com/vaadin/server/communication/PushRequestHandler.java
+++ b/server/src/main/java/com/vaadin/server/communication/PushRequestHandler.java
@@ -35,7 +35,6 @@ import org.atmosphere.cpr.AtmosphereResponseImpl;
import org.atmosphere.interceptor.HeartbeatInterceptor;
import org.atmosphere.util.VoidAnnotationProcessor;
-import com.vaadin.server.RequestHandler;
import com.vaadin.server.ServiceException;
import com.vaadin.server.ServletPortletHelper;
import com.vaadin.server.SessionExpiredHandler;
@@ -57,7 +56,7 @@ import com.vaadin.shared.communication.PushConstants;
* @since 7.1
*/
public class PushRequestHandler
- implements RequestHandler, SessionExpiredHandler {
+ implements SessionExpiredHandler {
private AtmosphereFramework atmosphere;
private PushHandler pushHandler;
diff --git a/server/src/main/java/com/vaadin/ui/ComboBox.java b/server/src/main/java/com/vaadin/ui/ComboBox.java
index c6765dde1a..9fa93b66ac 100644
--- a/server/src/main/java/com/vaadin/ui/ComboBox.java
+++ b/server/src/main/java/com/vaadin/ui/ComboBox.java
@@ -69,7 +69,7 @@ import elemental.json.JsonObject;
*/
@SuppressWarnings("serial")
public class ComboBox<T> extends AbstractSingleSelect<T>
- implements HasValue<T>, FieldEvents.BlurNotifier,
+ implements FieldEvents.BlurNotifier,
FieldEvents.FocusNotifier, HasFilterableDataProvider<T, String> {
/**
diff --git a/server/src/main/java/com/vaadin/ui/Component.java b/server/src/main/java/com/vaadin/ui/Component.java
index 955f5f068c..039c25e288 100644
--- a/server/src/main/java/com/vaadin/ui/Component.java
+++ b/server/src/main/java/com/vaadin/ui/Component.java
@@ -16,7 +16,6 @@
package com.vaadin.ui;
-import java.io.Serializable;
import java.util.Locale;
import org.jsoup.nodes.Element;
@@ -63,7 +62,7 @@ import com.vaadin.ui.declarative.DesignContext;
* @author Vaadin Ltd.
* @since 3.0
*/
-public interface Component extends ClientConnector, Sizeable, Serializable {
+public interface Component extends ClientConnector, Sizeable {
/**
* Gets all user-defined CSS style names of a component. If the component
diff --git a/server/src/main/java/com/vaadin/ui/Layout.java b/server/src/main/java/com/vaadin/ui/Layout.java
index 670bdebe62..64e31333a3 100644
--- a/server/src/main/java/com/vaadin/ui/Layout.java
+++ b/server/src/main/java/com/vaadin/ui/Layout.java
@@ -29,7 +29,7 @@ import com.vaadin.shared.ui.MarginInfo;
* @author Vaadin Ltd.
* @since 3.0
*/
-public interface Layout extends ComponentContainer, Serializable {
+public interface Layout extends ComponentContainer {
/**
* AlignmentHandler is most commonly an advanced {@link Layout} that can
diff --git a/server/src/main/java/com/vaadin/ui/MultiSelect.java b/server/src/main/java/com/vaadin/ui/MultiSelect.java
index 3c56a22da1..8b0dbb9629 100644
--- a/server/src/main/java/com/vaadin/ui/MultiSelect.java
+++ b/server/src/main/java/com/vaadin/ui/MultiSelect.java
@@ -15,7 +15,6 @@
*/
package com.vaadin.ui;
-import java.io.Serializable;
import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedHashSet;
@@ -38,7 +37,7 @@ import com.vaadin.shared.Registration;
* @since 8.0
*
*/
-public interface MultiSelect<T> extends HasValue<Set<T>>, Serializable {
+public interface MultiSelect<T> extends HasValue<Set<T>> {
/**
* Adds the given items to the set of currently selected items.
@@ -143,6 +142,7 @@ public interface MultiSelect<T> extends HasValue<Set<T>>, Serializable {
*
* @return An empty set, not {@code null}
*/
+ @Override
public default Set<T> getEmptyValue() {
return Collections.emptySet();
}
diff --git a/server/src/main/java/com/vaadin/ui/Notification.java b/server/src/main/java/com/vaadin/ui/Notification.java
index b8ee3a4caf..6171c53562 100644
--- a/server/src/main/java/com/vaadin/ui/Notification.java
+++ b/server/src/main/java/com/vaadin/ui/Notification.java
@@ -67,7 +67,7 @@ import com.vaadin.shared.ui.notification.NotificationState;
* </p>
*
*/
-public class Notification extends AbstractExtension implements Serializable {
+public class Notification extends AbstractExtension {
/**
* The server RPC.
diff --git a/server/src/main/java/com/vaadin/ui/UI.java b/server/src/main/java/com/vaadin/ui/UI.java
index ee303327bd..13adb68817 100644
--- a/server/src/main/java/com/vaadin/ui/UI.java
+++ b/server/src/main/java/com/vaadin/ui/UI.java
@@ -121,7 +121,7 @@ import com.vaadin.util.ReflectTools;
* @since 7.0
*/
public abstract class UI extends AbstractSingleComponentContainer
- implements Action.Container, Action.Notifier, PollNotifier,
+ implements Action.Notifier, PollNotifier,
LegacyComponent, Focusable {
/**
diff --git a/server/src/main/java/com/vaadin/ui/Window.java b/server/src/main/java/com/vaadin/ui/Window.java
index ee46c16f49..27172a08ba 100644
--- a/server/src/main/java/com/vaadin/ui/Window.java
+++ b/server/src/main/java/com/vaadin/ui/Window.java
@@ -80,7 +80,7 @@ import com.vaadin.util.ReflectTools;
*/
@SuppressWarnings({ "serial", "deprecation" })
public class Window extends Panel
- implements FocusNotifier, BlurNotifier, LegacyComponent {
+ implements FocusNotifier, BlurNotifier {
private WindowServerRpc rpc = new WindowServerRpc() {