From 298bcc80973d2e41773c77919a1ee42300083808 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sun, 3 Jun 2018 17:17:29 +0200 Subject: [PATCH] Improve FormField.resetValues() by using clear() instead of removeAll(). --- .../src/main/java/org/jivesoftware/smackx/xdata/FormField.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/FormField.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/FormField.java index d2489b5c7..6c09b6086 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/FormField.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/FormField.java @@ -378,7 +378,7 @@ public class FormField implements NamedElement { */ protected void resetValues() { synchronized (values) { - values.removeAll(new ArrayList<>(values)); + values.clear(); } }