mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
Use an extra variable for 'name' in DataValidationProvider
This commit is contained in:
parent
3132d9a224
commit
702b9a5139
1 changed files with 2 additions and 1 deletions
|
@ -50,7 +50,8 @@ public class DataValidationProvider {
|
||||||
int eventType = parser.next();
|
int eventType = parser.next();
|
||||||
switch (eventType) {
|
switch (eventType) {
|
||||||
case XmlPullParser.START_TAG:
|
case XmlPullParser.START_TAG:
|
||||||
switch (parser.getName()) {
|
String name = parser.getName();
|
||||||
|
switch (name) {
|
||||||
case OpenValidateElement.METHOD:
|
case OpenValidateElement.METHOD:
|
||||||
dataValidation = new OpenValidateElement(dataType);
|
dataValidation = new OpenValidateElement(dataType);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue