1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-15 03:52:05 +01:00

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

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();
} }
} }