]> source.dussan.org Git - vaadin-framework.git/commitdiff
Remove obsolete comment and assert in Binder (#12456) (#12465) 8.14.2
authorAnna Koskinen <Ansku@users.noreply.github.com>
Fri, 29 Oct 2021 14:43:44 +0000 (17:43 +0300)
committerGitHub <noreply@github.com>
Fri, 29 Oct 2021 14:43:44 +0000 (17:43 +0300)
Authored-by: Tatu Lund <tatu@vaadin.com>
server/src/main/java/com/vaadin/data/Binder.java

index 6a4afdb2f6f43d95ccb3990bf4ea50b11fd9c7c1..01794c7b3d16544cfa70193eaa48917e97ba42f9 100644 (file)
@@ -1239,8 +1239,7 @@ public class Binder<BEAN> implements Serializable {
 
         /**
          * Sets the field value by invoking the getter function on the given
-         * bean. The default listener attached to the field will be removed for
-         * the duration of this update.
+         * bean.
          *
          * @param bean
          *            the bean to fetch the property value from
@@ -1252,7 +1251,6 @@ public class Binder<BEAN> implements Serializable {
          */
         private void initFieldValue(BEAN bean, boolean writeBackChangedValues) {
             assert bean != null;
-            assert onValueChange != null;
             valueInit = true;
             try {
                 TARGET originalValue = getter.apply(bean);