summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnna Koskinen <Ansku@users.noreply.github.com>2020-04-24 13:19:14 +0300
committerGitHub <noreply@github.com>2020-04-24 13:19:14 +0300
commitc4626ca95ff23fdafb5c315e1cd745229e5534a2 (patch)
treee15fc88299a06fb2e1ab3ddcac58be29283fd802
parent03a71b4506632359766a6483c30ddad6e082128a (diff)
downloadvaadin-framework-c4626ca95ff23fdafb5c315e1cd745229e5534a2.tar.gz
vaadin-framework-c4626ca95ff23fdafb5c315e1cd745229e5534a2.zip
Remove unnecessary null-check at ValueContext constructors (#11915) (#11963)
* Remove unnecessary null-check at ValueContext constructors (#11915)
-rw-r--r--server/src/main/java/com/vaadin/data/ValueContext.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/server/src/main/java/com/vaadin/data/ValueContext.java b/server/src/main/java/com/vaadin/data/ValueContext.java
index b4a5012179..b332960a1f 100644
--- a/server/src/main/java/com/vaadin/data/ValueContext.java
+++ b/server/src/main/java/com/vaadin/data/ValueContext.java
@@ -17,7 +17,6 @@ package com.vaadin.data;
import java.io.Serializable;
import java.util.Locale;
-import java.util.Objects;
import java.util.Optional;
import com.vaadin.ui.Component;
@@ -67,8 +66,6 @@ public class ValueContext implements Serializable {
*/
@SuppressWarnings("unchecked")
public ValueContext(Component component) {
- Objects.requireNonNull(component,
- "Component can't be null in ValueContext construction");
this.component = component;
if (component instanceof HasValue) {
hasValue = (HasValue<?>) component;
@@ -88,8 +85,6 @@ public class ValueContext implements Serializable {
* @since 8.1
*/
public ValueContext(Component component, HasValue<?> hasValue) {
- Objects.requireNonNull(component,
- "Component can't be null in ValueContext construction");
this.component = component;
this.hasValue = hasValue;
locale = findLocale();