Skip to content

Commit 19073b9

Browse files
vaadin-botcaalador
andauthored
fix: Fix faulty javadoc for acceptNullValues (#22187) (#22212)
Fix the javadoc for acceptNullValues that mistakenly says that true throws an exception. Fixes #22186 Co-authored-by: caalador <mikael.grankvist@vaadin.com>
1 parent 30130bc commit 19073b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flow-server/src/main/java/com/vaadin/flow/component/AbstractSinglePropertyField.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ private <C extends AbstractField<C, V>, V> SerializableBiConsumer<C, V> createWr
152152
* @param defaultValue
153153
* the default value to use if the property isn't defined
154154
* @param acceptNullValues
155-
* if <code>true</code>, an exception will be thrown if the model
156-
* value is set to <code>null</code>; if <code>false</code> the
157-
* property will be removed when the model value is set to
158-
* <code>null</code>
155+
* if <code>true</code>, the property will be removed when the
156+
* model value is set to <code>null</code> ; if
157+
* <code>false</code> an exception will be thrown if the model
158+
* value is set to <code>null</code>
159159
*/
160160
@SuppressWarnings("unchecked")
161161
public AbstractSinglePropertyField(String propertyName, T defaultValue,

0 commit comments

Comments
 (0)