1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 12:02:05 +01:00

Use an extra variable for 'name' in DataValidationProvider

This commit is contained in:
Florian Schmaus 2018-03-28 19:35:41 +02:00
parent 3132d9a224
commit 702b9a5139

View file

@ -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;