1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-25 21:42:07 +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() {
synchronized (values) {
values.removeAll(new ArrayList<>(values));
values.clear();
}
}