Improve FormField.resetValues()

by using clear() instead of removeAll().
This commit is contained in:
Florian Schmaus 2018-06-03 17:17:29 +02:00
parent 2adf8a79af
commit 298bcc8097
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ public class FormField implements NamedElement {
*/ */
protected void resetValues() { protected void resetValues() {
synchronized (values) { synchronized (values) {
values.removeAll(new ArrayList<>(values)); values.clear();
} }
} }