From 702b9a51397b5e82806014e04f94bc7ec79ac358 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 28 Mar 2018 19:35:41 +0200 Subject: [PATCH] Use an extra variable for 'name' in DataValidationProvider --- .../xdatavalidation/provider/DataValidationProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/xdatavalidation/provider/DataValidationProvider.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/xdatavalidation/provider/DataValidationProvider.java index a495397fa..67b82447a 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/xdatavalidation/provider/DataValidationProvider.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/xdatavalidation/provider/DataValidationProvider.java @@ -50,7 +50,8 @@ public class DataValidationProvider { int eventType = parser.next(); switch (eventType) { case XmlPullParser.START_TAG: - switch (parser.getName()) { + String name = parser.getName(); + switch (name) { case OpenValidateElement.METHOD: dataValidation = new OpenValidateElement(dataType); break;